Skip to content

Commit f330b3e

Browse files
authored
Merge pull request #1647 from streamlabs/update-libobs-v31.1.2sl6
fix version update script
2 parents 70e9a9c + d35add7 commit f330b3e

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

ci/bump-version.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
const sh = require('shelljs');
2-
const colors = require('colors/safe');
31
const fs = require('fs');
42
const path = require('path');
53

64
function log_info(msg) {
7-
sh.echo(colors.magenta(msg));
5+
console.log(msg);
86
}
9-
7+
108
function log_error(msg) {
11-
sh.echo(colors.red(`ERROR: ${msg}`));
9+
console.error(`ERROR: ${msg}`);
1210
}
1311

1412
const newVersion = process.argv[2];
@@ -29,5 +27,5 @@ try {
2927
fs.writeFileSync(file, JSON.stringify(root, null, 2));
3028
} catch (error) {
3129
log_error(error);
32-
sh.exit(1);
30+
process.exit(1);
3331
}

0 commit comments

Comments
 (0)