Skip to content

Commit

Permalink
pub
Browse files Browse the repository at this point in the history
  • Loading branch information
basejump committed Jun 27, 2022
1 parent a12c6f1 commit 4a07ac0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/semver
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ function updateVersionFile {
rm -f "${versionFile}.bak"

# if snapshot was passed
if truthy "$VERSION_SET_SNAPSHOT" && grep -q ^snapshot= "$versionFile"; then
if truthy "${VERSION_SET_SNAPSHOT:-}" && grep -q ^snapshot= "$versionFile"; then
sed -i.bak -e "s/^snapshot=.*/snapshot=true/g" "$versionFile" && rm "${versionFile}.bak"
fi
if truthy "$RELEASE_RESET_FLAG" && grep -q ^release= "$versionFile"; then
if truthy "${RELEASE_RESET_FLAG:-}" && grep -q ^release= "$versionFile"; then
sed -i.bak -e "s/^release=.*/release=false/g" "$versionFile" && rm "${versionFile}.bak"
fi

Expand Down

0 comments on commit 4a07ac0

Please sign in to comment.