Skip to content

Commit

Permalink
use sh compatible regex check
Browse files Browse the repository at this point in the history
  • Loading branch information
motdotla committed Jun 18, 2024
1 parent c2f7982 commit 67d9052
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ is_version_valid() {
fi

local semver_regex="^([0-9]+)\.([0-9]+)\.([0-9]+)$"
if [[ "$VERSION" =~ $semver_regex ]]; then
if echo "$VERSION" | grep -Eq "$semver_regex"; then
return 0
else
echo "[INSTALLATION_FAILED] VERSION ($VERSION) is not a valid semantic version in install.sh script"
Expand Down

0 comments on commit 67d9052

Please sign in to comment.