Skip to content

Commit

Permalink
Make lockfiles branch checking more lenient (#8060)
Browse files Browse the repository at this point in the history
BUG
  • Loading branch information
mattsoulanille authored Nov 8, 2023
1 parent e5ead68 commit fe7f4f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/update-tfjs-lockfiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ async function main() {
// Delete possible branch from a prior execution of this script
const branchCmd = `git branch -D ${lockfilesBranch}`;
const result = shell.exec(branchCmd, {silent: true});
const okErrCode = `error: branch '${lockfilesBranch}' not found.`;
if (result.code > 0 && result.stderr.trim() !== okErrCode) {
const okErrCode = `branch '${lockfilesBranch}' not found`;
if (result.code > 0 && !result.stderr.trim().match(okErrCode)) {
console.log('$', branchCmd);
console.log(result.stderr);
process.exit(1);
Expand Down

0 comments on commit fe7f4f3

Please sign in to comment.