This commit is contained in:
Stavros Kois 2023-05-27 22:04:16 +03:00 committed by GitHub
parent 949787d0f9
commit 20b6ee06a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 5 deletions

View File

@ -15,11 +15,13 @@ function check_version() {
echo -e "\t🔙 Old Chart Version: $old" echo -e "\t🔙 Old Chart Version: $old"
echo -e "\t🆕 New Chart Version: $new" echo -e "\t🆕 New Chart Version: $new"
if [[ $(echo "$new\n$old" | sort -V -r | head -n1) != "$old" ]]; then if [[ -n "$new" ]]; then
echo -e "\t✅ Chart version: Bumped" if [[ $(echo "$new\n$old" | sort -V -r | head -n1) != "$old" ]]; then
else echo -e "\t✅ Chart version: Bumped"
echo -e "\t❌ Chart version: Not bumped or downgraded" else
curr_result=1 echo -e "\t❌ Chart version: Not bumped or downgraded"
curr_result=1
fi
fi fi
} }
export -f check_version export -f check_version