Skip to content

Commit fe7f4f3

Browse files
Make lockfiles branch checking more lenient (#8060)
BUG
1 parent e5ead68 commit fe7f4f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/update-tfjs-lockfiles.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ async function main() {
5858
// Delete possible branch from a prior execution of this script
5959
const branchCmd = `git branch -D ${lockfilesBranch}`;
6060
const result = shell.exec(branchCmd, {silent: true});
61-
const okErrCode = `error: branch '${lockfilesBranch}' not found.`;
62-
if (result.code > 0 && result.stderr.trim() !== okErrCode) {
61+
const okErrCode = `branch '${lockfilesBranch}' not found`;
62+
if (result.code > 0 && !result.stderr.trim().match(okErrCode)) {
6363
console.log('$', branchCmd);
6464
console.log(result.stderr);
6565
process.exit(1);

0 commit comments

Comments
 (0)