Skip to content

Commit

Permalink
fix pathes in pharo-launcher script
Browse files Browse the repository at this point in the history
  • Loading branch information
demarey committed Apr 25, 2024
1 parent 8b3ece6 commit 8206cee
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/pharo-launcher.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

# some magic to find out the real location of this script dealing with symlinks
DIR=`readlink "$0"` || DIR="$0";
ROOT=`dirname "$DIR"`;
# disable parameter expansion to forward all arguments unprocessed to the VM
set -f

Expand All @@ -30,7 +29,9 @@ fi

# RUN THE VM and pass along all arguments as is ================================
if [ "$OS" = "linux" ]; then
ROOT=$(dirname "$DIR");
"$ROOT"/pharo-vm/pharo --headless "$ROOT"/shared/PharoLauncher.image --no-default-preferences clap launcher "$@"
elif [ "$OS" = "mac" ]; then
"$ROOT"/Pharo --headless "$ROOT"/../Resources/PharoLauncher.image --no-default-preferences clap launcher "$@"
ROOT=$(dirname "$(dirname "$DIR")");
"$ROOT"/MacOs/Pharo --headless "$ROOT"/Resources/PharoLauncher.image --no-default-preferences clap launcher "$@"
fi

0 comments on commit 8206cee

Please sign in to comment.