In `EmuHawkMono.sh`, check distro name case-insensitively

This commit is contained in:
YoshiRulz 2022-01-20 12:30:00 +10:00
parent 199474e128
commit 022cb02f3e
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 4 additions and 4 deletions

View File

@ -7,10 +7,10 @@ fi
libpath=""
winepath=""
if [ "$(command -v lsb_release)" ]; then
case "$(lsb_release -i | cut -c17- | tr -d "\n")" in
"Arch"|"ManjaroLinux"|"Artix") libpath="/usr/lib";;
"Fedora") libpath="/usr/lib64"; export MONO_WINFORMS_XIM_STYLE=disabled;; # see https://bugzilla.xamarin.com/show_bug.cgi?id=28047#c9
"Debian"|"LinuxMint"|"Ubuntu"|"Pop") libpath="/usr/lib/x86_64-linux-gnu"; export MONO_WINFORMS_XIM_STYLE=disabled;; # ditto
case "$(lsb_release -i | cut -c17- | tr -d "\n" | tr A-Z a-z)" in
"arch"|"manjarolinux"|"artix") libpath="/usr/lib";;
"fedora") libpath="/usr/lib64"; export MONO_WINFORMS_XIM_STYLE=disabled;; # see https://bugzilla.xamarin.com/show_bug.cgi?id=28047#c9
"debian"|"linuxmint"|"ubuntu"|"pop") libpath="/usr/lib/x86_64-linux-gnu"; export MONO_WINFORMS_XIM_STYLE=disabled;; # ditto
esac
else
printf "Distro does not provide LSB release info API! (You've met with a terrible fate, haven't you?)\n"