Merge pull request #216 from linuxserver/code-server-golang-apt

standardize apt-get
This commit is contained in:
aptalca
2021-06-23 18:00:00 -04:00
committed by GitHub
2 changed files with 16 additions and 13 deletions
+3
View File
@@ -0,0 +1,3 @@
#!/usr/bin/with-contenv bash
apt-get update
+1 -1
View File
@@ -19,7 +19,7 @@ if [ -f "/golang/golang_${ARCH}.tar.gz" ]; then
rm -rf /golang rm -rf /golang
echo "Installing gcc, to make CGO work" echo "Installing gcc, to make CGO work"
apt-get update && apt-get install -y gcc apt-get install -y gcc
else else
echo "Golang already installed, skipping" echo "Golang already installed, skipping"
fi fi