Skip to content

Commit

Permalink
Rename version_compare.sh to is-smaller-version.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
dumganhar committed May 29, 2024
1 parent fb0e697 commit 1b37543
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/version_compare.sh → scripts/is-smaller-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 1b37543

Please sign in to comment.