use case insensitive grep when detecting the os

fixes WSL not being properly detected
This commit is contained in:
urmum-69 2020-09-26 18:36:10 +01:00
parent ba2b60109a
commit b623cb40f1
No known key found for this signature in database
GPG key ID: DA3E39691FDC863B

View file

@ -4,7 +4,7 @@
# Origin https://git.snopyta.org/twosecslater/bluebomb-helper.git
# Authors urmum_69, twosecslater
if [[ -n $(uname -a | grep "Microsoft\|MSYS\|CYGWIN\|Darwin") ]]; then printf "\033[1;91mNOTICE\033[0m:\n======\n\nBlueBomb does NOT work under MacOS, Windows, nor the \"Windows Subsystem for Linux\"."; exit; fi
if [[ -n $(uname -a | grep -i "Microsoft\|MSYS\|CYGWIN\|Darwin") ]]; then printf "\033[1;91mNOTICE\033[0m:\n======\n\nBlueBomb does NOT work under MacOS, Windows, nor the \"Windows Subsystem for Linux\"."; exit; fi
version="0.1.3"
helpmsg="Need further help? You can either join the Wii Mini Hacking Discord server (recommended) at https://discord.gg/6ryxnkS, the RiiConnect24 Discord server at https://discord.gg/b4Y7jfD or you can send an e-mail to support@riiconnect24.net and we'll try to assist. "