aboutsummaryrefslogtreecommitdiff
path: root/src/rust
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
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')
-rw-r--r--src/rust/devcontainer-feature.json2
-rwxr-xr-xsrc/rust/install.sh4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/rust/devcontainer-feature.json b/src/rust/devcontainer-feature.json
index 016e464..8212b34 100644
--- a/src/rust/devcontainer-feature.json
+++ b/src/rust/devcontainer-feature.json
@@ -1,6 +1,6 @@
{
"id": "rust",
- "version": "1.0.2",
+ "version": "1.0.3",
"name": "Rust",
"description": "Installs Rust, common Rust utilities, and their required dependencies",
"options": {
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