Commit 6311ea1f authored by multrus's avatar multrus
Browse files

fix string comparison against system, to work on all platforms

parent fc6cc47c
Loading
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -32,14 +32,13 @@

emulator=""
system=`uname -s`
if [[ ($system == "Linux") && (`uname -a` == "*@(microsoft|Microsoft|wsl|WSL)*") ]]; then
if [[ ($system == "Linux") && (`uname -a` =~ (microsoft|Microsoft|wsl|WSL) ) ]]; then
    system="WSL"
fi
if [[ ($system == "Linux") || ($system == "Darwin") ]]; then
    emulator="wine"
fi


coan_exists () {
  type coan &> /dev/null ;
}