From 1b37543d6688a88268352a827570dbbbc84ac726 Mon Sep 17 00:00:00 2001 From: James Chen Date: Wed, 29 May 2024 13:38:36 +0800 Subject: [PATCH] Rename version_compare.sh to is-smaller-version.sh --- scripts/{version_compare.sh => is-smaller-version.sh} | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename scripts/{version_compare.sh => is-smaller-version.sh} (87%) diff --git a/scripts/version_compare.sh b/scripts/is-smaller-version.sh similarity index 87% rename from scripts/version_compare.sh rename to scripts/is-smaller-version.sh index 0ec9afd..5bf25a7 100755 --- a/scripts/version_compare.sh +++ b/scripts/is-smaller-version.sh @@ -9,17 +9,17 @@ compare_version="$1" # Remove the leading 'v' if it exists compare_version=$(echo "$compare_version" | sed 's/^v//') -echo "compare_version: ${compare_version}" +# echo "compare_version: ${compare_version}" # Function to execute if the version is less than the given version function do_something { - echo "Executing task for version less than $version" - exit 1 + echo "IS_LESS=1" + exit 0 } # Function to execute if the version is not less than the given version function do_something_else { - echo "Executing task for version not less than $version" + echo "IS_LESS=0" exit 0 }