Skip to content

Commit

Permalink
chore: remove subshell, use parantheses instead (#397)
Browse files Browse the repository at this point in the history
Closes #395
  • Loading branch information
DanielMSchmidt authored Jan 22, 2024
1 parent 0365bea commit 10f602b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ export class CdktfProviderProject extends cdk.JsiiProject {

const cancelCommand =
'echo "latest_commit=release_cancelled" >> $GITHUB_OUTPUT'; // this cancels the release via a non-matching SHA;
gitRemoteJob.run = `node ./scripts/should-release.js && $(${previousCommand}) || ${cancelCommand}`;
gitRemoteJob.run = `node ./scripts/should-release.js && (${previousCommand}) || ${cancelCommand}`;
gitRemoteJob.name +=
" or cancel via faking a SHA if release was cancelled";
}
Expand Down
6 changes: 3 additions & 3 deletions test/__snapshots__/index.test.ts.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 10f602b

Please sign in to comment.