Skip to content

Commit

Permalink
Adding an escape for a failed grep command which may be expected
Browse files Browse the repository at this point in the history
  • Loading branch information
jkueh committed Apr 16, 2024
1 parent f9667a8 commit 3b92b06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auto/build
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -eu

GITHUB_VERSION="$(grep '^v' <<< "${GITHUB_REF_NAME}")"
GITHUB_VERSION="$(grep '^v' <<< "${GITHUB_REF_NAME}" || true)"
GIT_SHA="$(git rev-parse --verify HEAD)"

function getVersion() {
Expand Down

0 comments on commit 3b92b06

Please sign in to comment.