Skip to content

Commit

Permalink
Tighten regex for release version
Browse files Browse the repository at this point in the history
  • Loading branch information
autarch committed May 18, 2024
1 parent ec323bd commit 7ececb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install-cross-nix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ VERSION="$2"

cd "$CROSS_DIR"

if [[ -n $VERSION ]] && ! [[ $VERSION =~ ^v ]]; then
if [[ -n $VERSION ]] && ! [[ $VERSION =~ ^v\d+\.\d+\.\d+$ ]]; then
cargo install cross --git https://github.com/cross-rs/cross --rev "$VERSION"
mv "$HOME/.cargo/bin/cross" .
./cross --version
Expand Down

0 comments on commit 7ececb2

Please sign in to comment.