diff --git a/.github/scripts/tc-lint.sh b/.github/scripts/tc-lint.sh index 1f53ea27521..9be3abcf459 100755 --- a/.github/scripts/tc-lint.sh +++ b/.github/scripts/tc-lint.sh @@ -15,11 +15,13 @@ function check_version() { echo -e "\t🔙 Old Chart Version: $old" echo -e "\t🆕 New Chart Version: $new" - if [[ $(echo "$new\n$old" | sort -V -r | head -n1) != "$old" ]]; then - echo -e "\t✅ Chart version: Bumped" - else - echo -e "\t❌ Chart version: Not bumped or downgraded" - curr_result=1 + if [[ -n "$new" ]]; then + if [[ $(echo "$new\n$old" | sort -V -r | head -n1) != "$old" ]]; then + echo -e "\t✅ Chart version: Bumped" + else + echo -e "\t❌ Chart version: Not bumped or downgraded" + curr_result=1 + fi fi } export -f check_version