Improve versioning script

This commit is contained in:
Wilson Lin 2020-01-03 17:48:02 +11:00
parent 89221927e2
commit 7e90b5f61b
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ const cmd = (...cfg) => {
const replaceInFile = (path, pattern, replacement) => writeFileSync(path, readFileSync(path, "utf8").replace(pattern, replacement));
if (cmd('git', 'status', '--porcelain', {throwOnStderr: true})) {
if (cmd('git', 'status', '--porcelain', {throwOnStderr: true, captureStdio: true}).stdout) {
throw new Error(`Working directory not clean`);
}