Skip to content

Commit 022cb02

Browse files
committed
In EmuHawkMono.sh, check distro name case-insensitively
1 parent 199474e commit 022cb02

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Assets/EmuHawkMono.sh

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

0 commit comments

Comments
 (0)