Skip to content

Commit 0fb15cb

Browse files
Remove duplicated install_system_packages function (#140)
1 parent 506c3a0 commit 0fb15cb

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

install-rust-toolchain.sh

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -427,22 +427,6 @@ function install_system_packages() {
427427
fi
428428
}
429429

430-
function install_system_packages() {
431-
if [ -z "${SYSTEM_PACKAGES}" ]; then
432-
return
433-
fi
434-
435-
echo "Installing system packages: ${SYSTEM_PACKAGES}"
436-
437-
if [[ ${ARCH} == "aarch64-apple-darwin" || ${ARCH} == "x86_64-apple-darwin" ]]; then
438-
command -v brew || {
439-
echo "Warning: Unable to find command brew. Skipping installation of system package."
440-
return
441-
}
442-
brew list "${SYSTEM_PACKAGES}" || brew install "${SYSTEM_PACKAGES}"
443-
fi
444-
}
445-
446430
# Check required tooling - rustc, rustfmt
447431
command -v rustup || install_rustup
448432

0 commit comments

Comments
 (0)