Skip to content

Commit

Permalink
ci: update the version-bump script argument check (#46)
Browse files Browse the repository at this point in the history
* Updating the version-bump script for a specific check for 'undefined' which is the default, invalid value for the codefresh pipeline
* added exit 1 to ensure script doesn't try and make any changes after variable check fails
  • Loading branch information
RedXIV2 authored Jan 30, 2023
1 parent 74e69ef commit c518fa9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/version-bump.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ readonly git_email="tech-ally@lacework.net"

if [[ "${1:-}" == "" ]]; then
echo "ERROR: Unable to update version. Please provide the new version to update."
elif [[ "${1:-}" == "undefined" ]]; then
echo "ERROR: SCANNER_VERSION variable not passed to codefresh job. Please check the pipeline."
exit 1
fi

_scanner_version=$1
Expand Down

0 comments on commit c518fa9

Please sign in to comment.