diff --git a/tools/metacall-runtime.sh b/tools/metacall-runtime.sh index 95e6a0432..b75e1f7a0 100755 --- a/tools/metacall-runtime.sh +++ b/tools/metacall-runtime.sh @@ -45,6 +45,15 @@ INSTALL_CLEAN=0 SHOW_HELP=0 PROGNAME=$(basename $0) +# Operative System detection +case "$(uname -s)" in + Linux*) OPERATIVE_SYSTEM=Linux;; + Darwin*) OPERATIVE_SYSTEM=Darwin;; + CYGWIN*) OPERATIVE_SYSTEM=Cygwin;; + MINGW*) OPERATIVE_SYSTEM=MinGW;; + *) OPERATIVE_SYSTEM="Unknown" +esac + # Check out for sudo if [ "`id -u`" = '0' ]; then SUDO_CMD=""