Skip to content

Commit f1ec1c5

Browse files
committed
Further changes in the input
1 parent 4b2afdd commit f1ec1c5

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/rust/install.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
RUST_VERSION="${VERSION:-"latest"}"
1111
RUSTUP_PROFILE="${PROFILE:-"minimal"}"
1212
RUSTUP_TARGETS="${TARGETS:-""}"
13-
RUST_COMPONENTS="${COMPONENTS:-"rust-analyzer,rust-src,rustfmt,clippy"}"
13+
IFS=',' read -ra components <<< "${COMPONENTS:-rust-analyzer,rust-src,rustfmt,clippy}"
1414

1515
export CARGO_HOME="${CARGO_HOME:-"/usr/local/cargo"}"
1616
export RUSTUP_HOME="${RUSTUP_HOME:-"/usr/local/rustup"}"
@@ -397,7 +397,6 @@ if [ "${UPDATE_RUST}" = "true" ]; then
397397
fi
398398
# Install Rust components based on flag
399399
echo "Installing Rust components..."
400-
IFS=',' read -ra components <<< "${RUST_COMPONENTS}"
401400
for component in "${components[@]}"; do
402401
# Trim leading and trailing whitespace
403402
component="${component#"${component%%[![:space:]]*}"}" && component="${component%"${component##*[![:space:]]}"}"

0 commit comments

Comments
 (0)