Skip to content

Commit 592eed3

Browse files
authored
Merge pull request #27 from SwitchAxe/os-detection-fix
Fixed OSTYPE check for when linux is reported as 'linux' instead of 'linux-gnu'
2 parents 874ec61 + d409141 commit 592eed3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dltools.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ if [[ "$OSTYPE" == "darwin"* ]]; then
4242
fi
4343

4444
# Linux (x86_64)
45-
elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
45+
elif [[ "$OSTYPE" == "linux-gnu"* || "$OSTYPE" == "linux" ]]; then
4646
echo " * Downloading ${BOLD}ctrdecrypt${NORMAL}"
4747
wget "https://github.com/shijimasoft/ctrdecrypt/releases/download/v${CTRDECRYPT_VER}/ctrdecrypt-linux-x86_64.zip" -q
4848
echo " * Extracting ${BOLD}ctrdecrypt${NORMAL}"

0 commit comments

Comments
 (0)