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

This commit is contained in:
Mark Lee 2019-07-12 15:40:28 -07:00
Родитель 5a5b526f8c
Коммит 677fa9b297
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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) {