Improve versioning script
This commit is contained in:
parent
89221927e2
commit
7e90b5f61b
2
version
2
version
|
@ -44,7 +44,7 @@ const cmd = (...cfg) => {
|
||||||
|
|
||||||
const replaceInFile = (path, pattern, replacement) => writeFileSync(path, readFileSync(path, "utf8").replace(pattern, replacement));
|
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`);
|
throw new Error(`Working directory not clean`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue