Fixed OSTYPE check for when linux is reported as 'linux' instead of 'linux-gnu'

This commit is contained in:
Sofia Cerasuoli 2024-10-05 00:37:04 +02:00
parent 874ec61bf2
commit d4091410c2

View File

@ -42,7 +42,7 @@ if [[ "$OSTYPE" == "darwin"* ]]; then
fi fi
# Linux (x86_64) # Linux (x86_64)
elif [[ "$OSTYPE" == "linux-gnu"* ]]; then elif [[ "$OSTYPE" == "linux-gnu"* || "$OSTYPE" == "linux" ]]; then
echo " * Downloading ${BOLD}ctrdecrypt${NORMAL}" echo " * Downloading ${BOLD}ctrdecrypt${NORMAL}"
wget "https://github.com/shijimasoft/ctrdecrypt/releases/download/v${CTRDECRYPT_VER}/ctrdecrypt-linux-x86_64.zip" -q wget "https://github.com/shijimasoft/ctrdecrypt/releases/download/v${CTRDECRYPT_VER}/ctrdecrypt-linux-x86_64.zip" -q
echo " * Extracting ${BOLD}ctrdecrypt${NORMAL}" echo " * Extracting ${BOLD}ctrdecrypt${NORMAL}"