Merge pull request #27 from SwitchAxe/os-detection-fix

Fixed OSTYPE check for when linux is reported as 'linux' instead of 'linux-gnu'
This commit is contained in:
Nishijima Akito 2025-04-08 11:50:38 +02:00 committed by GitHub
commit 592eed3dd4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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}"