aboutsummaryrefslogtreecommitdiff
path: root/src/rust/install.sh
diff options
context:
space:
mode:
authorJosh Spicer <joshspicer@github.com>2022-08-23 02:45:11 +0300
committerGitHub <noreply@github.com>2022-08-23 02:45:11 +0300
commit58e425039a1dc78cde64e9c1939e2a3dfed6d22a (patch)
treebf7d29492796a71fa0a449a836eaa518a3b25502 /src/rust/install.sh
parentec1deb82808c14de9ce601838e255357718b49d4 (diff)
fix rust error when choose a non-default version. (#111)
port of https://github.com/microsoft/vscode-dev-containers/pull/1592
Diffstat (limited to 'src/rust/install.sh')
-rwxr-xr-xsrc/rust/install.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rust/install.sh b/src/rust/install.sh
index 3970bb2..a84716c 100755
--- a/src/rust/install.sh
+++ b/src/rust/install.sh
@@ -179,8 +179,8 @@ else
apt-get -y install --no-install-recommends git
fi
- echo ${RUST_VERSION} | grep -q "nightly"
- is_nightly=$?
+ is_nightly=0
+ echo ${RUST_VERSION} | grep -q "nightly" || is_nightly=$?
if [ $is_nightly = 0 ]; then
check_nightly_version_formatting RUST_VERSION
else