File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed
root/etc/s6-overlay/s6-rc.d/init-mod-code-server-rust-install Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change 22
33set -e
44
5- if command -v rustc >/dev/null 2>&1; then
6- echo "+++ rust is already installed +++"
7- exit 0
8- fi
9-
105RUST_BINS_PATH="/rust-bins"
116PACKAGES_TO_INSTALL_LIST="/mod-repo-packages-to-install.list"
127
138ARCH=$(uname -m)
149SUPPORTED_ARCHS=("x86_64" "aarch64")
1510
1611if [[ ! " ${SUPPORTED_ARCHS[@]} " =~ " ${ARCH} " ]]; then
17- echo "+++ unsupported architecture: $ARCH +++ "
12+ echo "**** unsupported architecture: $ARCH **** "
1813 exit 1
1914fi
2015
@@ -25,20 +20,19 @@ grep_os_release() {
2520}
2621
2722if [[ -f "$RUST_BINARY_ARCHIVE_PATH" ]]; then
28- echo "+++ unpacking rust tar +++ "
23+ echo "**** unpacking rust tar **** "
2924 tar -xzf "$RUST_BINARY_ARCHIVE_PATH" -C "$RUST_BINS_PATH" --strip-components=1
3025
31- echo "+++ installing rust +++ "
26+ echo "**** installing rust **** "
3227 "$RUST_BINS_PATH/install.sh"
3328 rm -rf "$RUST_BINS_PATH"
3429
35- echo "+++ adding build tools +++ "
30+ echo "**** adding build tools **** "
3631 if grep_os_release "debian"; then
3732 echo "build-essential" >>"$PACKAGES_TO_INSTALL_LIST"
3833 else
3934 echo "gcc" >>"$PACKAGES_TO_INSTALL_LIST"
4035 fi
41-
4236else
43- echo "+++ rust tar not found +++ "
37+ echo "**** rust already installed **** "
4438fi
You can’t perform that action at this time.
0 commit comments