fix
This commit is contained in:
parent
949787d0f9
commit
20b6ee06a4
|
@ -15,12 +15,14 @@ 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 [[ -n "$new" ]]; then
|
||||||
if [[ $(echo "$new\n$old" | sort -V -r | head -n1) != "$old" ]]; then
|
if [[ $(echo "$new\n$old" | sort -V -r | head -n1) != "$old" ]]; then
|
||||||
echo -e "\t✅ Chart version: Bumped"
|
echo -e "\t✅ Chart version: Bumped"
|
||||||
else
|
else
|
||||||
echo -e "\t❌ Chart version: Not bumped or downgraded"
|
echo -e "\t❌ Chart version: Not bumped or downgraded"
|
||||||
curr_result=1
|
curr_result=1
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
export -f check_version
|
export -f check_version
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue