Skip to content
This repository has been archived by the owner on Sep 27, 2022. It is now read-only.

Commit

Permalink
await correctly now
Browse files Browse the repository at this point in the history
  • Loading branch information
Fatdet committed Feb 24, 2022
1 parent 66a65d1 commit dd700f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ async function main(){

if(mode == "GET_VERSION"){
cur_ver = getVersion(pathToVersionFile);
new_ver = updateVersion(cur_ver);
new_ver = await updateVersion(cur_ver);
}
else if(mode == "BUMP_VERSION"){
cur_ver = getVersion(pathToVersionFile);
new_ver = updateVersion(cur_ver);
new_ver = await updateVersion(cur_ver);
updateVersionFile(pathToVersionFile, new_ver);
was_bumped = cur_ver != new_ver;
}
Expand Down

0 comments on commit dd700f0

Please sign in to comment.