Skip to content

Commit

Permalink
Remove uneeded regex
Browse files Browse the repository at this point in the history
  • Loading branch information
reespozzi committed Aug 15, 2023
1 parent 0a8238f commit 3adbcff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/uk/gov/hmcts/helm/check-deprecated-charts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function ver { printf "%03d%03d%03d%03d" $(echo "$1" | tr '.' ' '); }

CURRENT_VERSION=$(helm dependency ls charts/${CHART_DIRECTORY}/ | grep "^${DEPRECATED_CHART_NAME}" |awk '{ print $2}' | sed "s/~//g")
# Only run deprecation checks on non beta/alpha chart versions
if [[ ! $CURRENT_VERSION =~ (alpha|beta).* ]]; then
if [[ ! $CURRENT_VERSION =~ (alpha|beta) ]]; then
if [[ -n $CURRENT_VERSION ]] && [ $(ver $CURRENT_VERSION) -lt $(ver ${DEPRECATED_CHART_VERSION}) ]; then
echo "$deprecation chart $CURRENT_VERSION is deprecated, please upgrade to at least ${DEPRECATED_CHART_VERSION}"
exit 1
Expand Down

0 comments on commit 3adbcff

Please sign in to comment.