fix install script (#640)

This commit is contained in:
Unnunu 2022-02-08 11:16:47 +03:00 committed by GitHub
parent 9394e1ee21
commit 44d51a0771
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 10 deletions

View File

@ -10,7 +10,7 @@ uname=`uname`
unset supported unset supported
if [[ "$uname" == "Darwin" ]]; then if [[ "$uname" == "Darwin" ]]; then
supported = true supported=true
echo "Downloading gcc/binutils for macOS" echo "Downloading gcc/binutils for macOS"
curl -L "https://github.com/pmret/gcc-papermario/releases/download/master/mac.tar.gz" | tar zx -C tools/build/cc/gcc curl -L "https://github.com/pmret/gcc-papermario/releases/download/master/mac.tar.gz" | tar zx -C tools/build/cc/gcc
@ -45,7 +45,7 @@ fi
# Debian and derivatives (apt) # Debian and derivatives (apt)
if cat /etc/os-release | grep -E 'ID=debian|ID_LIKE=(.*)debian' &> /dev/null; then if cat /etc/os-release | grep -E 'ID=debian|ID_LIKE=(.*)debian' &> /dev/null; then
supported = true supported=true
echo "Installing packages for Debian or derivative (apt)" echo "Installing packages for Debian or derivative (apt)"
@ -61,12 +61,11 @@ if cat /etc/os-release | grep -E 'ID=debian|ID_LIKE=(.*)debian' &> /dev/null; th
fi fi
echo "Done" echo "Done"
exit
fi fi
# Arch Linux and derivatives (pacman) # Arch Linux and derivatives (pacman)
if cat /etc/os-release | grep -E 'ID=arch|ID_LIKE=arch' &> /dev/null; then if cat /etc/os-release | grep -E 'ID=arch|ID_LIKE=arch' &> /dev/null; then
supported = true supported=true
echo "Installing packages for Arch Linux or derivative (pacman)" echo "Installing packages for Arch Linux or derivative (pacman)"
@ -104,12 +103,11 @@ if cat /etc/os-release | grep -E 'ID=arch|ID_LIKE=arch' &> /dev/null; then
fi fi
echo "Done" echo "Done"
exit
fi fi
# openSUSE (zypper) # openSUSE (zypper)
if cat /etc/os-release | grep ID=opensuse &> /dev/null; then if cat /etc/os-release | grep ID=opensuse &> /dev/null; then
supported = true supported=true
echo "Installing packages for openSUSE (zypper)" echo "Installing packages for openSUSE (zypper)"
@ -141,12 +139,11 @@ if cat /etc/os-release | grep ID=opensuse &> /dev/null; then
fi fi
echo "Done" echo "Done"
exit
fi fi
# Alpine Linux (apk) # Alpine Linux (apk)
if cat /etc/os-release | grep ID=alpine &> /dev/null; then if cat /etc/os-release | grep ID=alpine &> /dev/null; then
supported = true supported=true
echo "Installing packages for Alpine Linux (apk)" echo "Installing packages for Alpine Linux (apk)"
@ -199,8 +196,6 @@ if cat /etc/os-release | grep ID=alpine &> /dev/null; then
fi fi
echo "Done" echo "Done"
exit
fi fi