Skip to content

Commit

Permalink
chore: fix problems with working dir check in bump version script
Browse files Browse the repository at this point in the history
  • Loading branch information
malept committed Jul 12, 2019
1 parent 5a5b526 commit 677fa9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/bump.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ async function run(command) {
}

async function checkCleanWorkingDir() {
if ((await run('git status -s')).toString() !== '') {
if ((await run('git status -s')).stdout !== '') {
throw 'Your working directory is not clean, please ensure you have a clean working directory before version bumping'.red;
}
}
Expand All @@ -33,7 +33,7 @@ async function updateChangelog(lastVersion, version) {
}

(async () => {
checkCleanWorkingDir();
await checkCleanWorkingDir();

const version = process.argv[2];
if (!version) {
Expand Down

0 comments on commit 677fa9b

Please sign in to comment.