Skip to content
Permalink
Browse files

chore: fix problems with working dir check in bump version script

  • Loading branch information
malept committed Jul 12, 2019
1 parent 5a5b526 commit 677fa9b2972f06e28775463f89d6cbb1b7fcedc3
Showing with 2 additions and 2 deletions.
  1. +2 −2 tools/bump.js
@@ -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;
}
}
@@ -33,7 +33,7 @@ async function updateChangelog(lastVersion, version) {
}

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

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

0 comments on commit 677fa9b

Please sign in to comment.
You can’t perform that action at this time.