aboutsummaryrefslogtreecommitdiff
path: root/src/rust/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/rust/install.sh')
-rwxr-xr-xsrc/rust/install.sh16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/rust/install.sh b/src/rust/install.sh
index e7cfb71..1a30992 100755
--- a/src/rust/install.sh
+++ b/src/rust/install.sh
@@ -7,14 +7,14 @@
# Docs: https://github.com/microsoft/vscode-dev-containers/blob/main/script-library/docs/rust.md
# Maintainer: The VS Code and Codespaces Teams
-RUST_VERSION=${VERSION:-"latest"}
-RUSTUP_PROFILE=${PROFILE:-"minimal"}
-
-export CARGO_HOME=${CARGO_HOME:-"/usr/local/cargo"}
-export RUSTUP_HOME=${RUSTUP_HOME:-"/usr/local/rustup"}
-USERNAME=${USERNAME:-"automatic"}
-UPDATE_RC=${UPDATE_RC:-"true"}
-UPDATE_RUST=${UPDATE_RUST:-"false"}
+RUST_VERSION="${VERSION:-"latest"}"
+RUSTUP_PROFILE="${PROFILE:-"minimal"}"
+
+export CARGO_HOME="${CARGO_HOME:-"/usr/local/cargo"}"
+export RUSTUP_HOME="${RUSTUP_HOME:-"/usr/local/rustup"}"
+USERNAME="${USERNAME:-"${_REMOTE_USER:-"automatic"}"}"
+UPDATE_RC="${UPDATE_RC:-"true"}"
+UPDATE_RUST="${UPDATE_RUST:-"false"}"
set -e