Skip to content

Commit c780149

Browse files
committed
Replace +++ message part with ****
Change rust message if already installed
1 parent 17a69de commit c780149

File tree

1 file changed

+5
-11
lines changed
  • root/etc/s6-overlay/s6-rc.d/init-mod-code-server-rust-install

1 file changed

+5
-11
lines changed

root/etc/s6-overlay/s6-rc.d/init-mod-code-server-rust-install/run

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,14 @@
22

33
set -e
44

5-
if command -v rustc >/dev/null 2>&1; then
6-
echo "+++ rust is already installed +++"
7-
exit 0
8-
fi
9-
105
RUST_BINS_PATH="/rust-bins"
116
PACKAGES_TO_INSTALL_LIST="/mod-repo-packages-to-install.list"
127

138
ARCH=$(uname -m)
149
SUPPORTED_ARCHS=("x86_64" "aarch64")
1510

1611
if [[ ! " ${SUPPORTED_ARCHS[@]} " =~ " ${ARCH} " ]]; then
17-
echo "+++ unsupported architecture: $ARCH +++"
12+
echo "**** unsupported architecture: $ARCH ****"
1813
exit 1
1914
fi
2015

@@ -25,20 +20,19 @@ grep_os_release() {
2520
}
2621

2722
if [[ -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-
4236
else
43-
echo "+++ rust tar not found +++"
37+
echo "**** rust already installed ****"
4438
fi

0 commit comments

Comments
 (0)