Skip to content

Commit

Permalink
Merge pull request #4242 from MonsieurNicolas/fixRustInstallScript
Browse files Browse the repository at this point in the history
Don't use bash syntax in sh script

Reviewed-by: sisuresh
  • Loading branch information
latobarita authored Mar 13, 2024
2 parents 5cb056d + 3e6d0b9 commit f7a767a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install-rust.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ set -x
# rust-toolchain.toml. This file will pick it up automatically.
RUST_VERSION=$(perl -ne 'if (/channel\s+=\s+"(\d+(?:\.\d+)+)"/) { print $1 }' rust-toolchain.toml)

if [[ -z "$RUST_VERSION" ]]; then
if [ -z "$RUST_VERSION" ]; then
echo "RUST_VERSION is empty"
exit 1;
fi
Expand Down

0 comments on commit f7a767a

Please sign in to comment.