Skip to content

Commit

Permalink
version_compare.sh handles version that starts with v
Browse files Browse the repository at this point in the history
  • Loading branch information
dumganhar committed May 29, 2024
1 parent d9735f0 commit b17c373
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/version_compare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ version="3.8.3"
# Version to compare
compare_version="$1"

# Remove the leading 'v' if it exists
compare_version=$(echo "$compare_version" | sed 's/^v//')

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"
Expand Down

0 comments on commit b17c373

Please sign in to comment.