We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5ead68 commit fe7f4f3Copy full SHA for fe7f4f3
scripts/update-tfjs-lockfiles.ts
@@ -58,8 +58,8 @@ async function main() {
58
// Delete possible branch from a prior execution of this script
59
const branchCmd = `git branch -D ${lockfilesBranch}`;
60
const result = shell.exec(branchCmd, {silent: true});
61
- const okErrCode = `error: branch '${lockfilesBranch}' not found.`;
62
- if (result.code > 0 && result.stderr.trim() !== okErrCode) {
+ const okErrCode = `branch '${lockfilesBranch}' not found`;
+ if (result.code > 0 && !result.stderr.trim().match(okErrCode)) {
63
console.log('$', branchCmd);
64
console.log(result.stderr);
65
process.exit(1);
0 commit comments