Skip to content

Commit

Permalink
Solve metacall runtime script issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed Feb 1, 2024
1 parent be9fe06 commit 251ee55
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tools/metacall-runtime.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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=""
Expand Down

0 comments on commit 251ee55

Please sign in to comment.