fix: Only use APT in Debian-based images

This commit is contained in:
Felicitas Pojtinger
2022-01-08 17:25:26 +01:00
parent 32094155ba
commit d80d2a2427

View File

@@ -2,12 +2,12 @@
set -e
# Install native dependencies
apt update
apt install -y curl make
# Go
if [ "$1" = "go" ]; then
# Install native dependencies
apt update
apt install -y curl make
# Install bagop
curl -L -o /tmp/bagop "https://github.com/pojntfx/bagop/releases/latest/download/bagop.linux-$(uname -m)"
install /tmp/bagop /usr/local/bin
@@ -25,6 +25,10 @@ fi
# gccgo
if [ "$1" = "gccgo" ]; then
# Install native dependencies
apt update
apt install -y curl
# Install bagccgop
curl -L -o /tmp/bagccgop "https://github.com/pojntfx/bagccgop/releases/latest/download/bagccgop.linux-$(uname -m)"
install /tmp/bagccgop /usr/local/bin
@@ -75,4 +79,4 @@ if [ "$1" = "windows" ]; then
yes | cp -f ~/.wine/drive_c/users/root/Documents/stfs/out/* out
exit 0
fi
fi