Under macOS `bin/cli.exe` assumes TTool is installed in user's home directory
Summary
Under macOS bin/cli.exe
assumes TTool is installed in user's home directory:
cat bin/cli.exe
cd ~/TTool/bin&&java -Xmx2048m -jar ttool-cli.jar -debug -show ../modeling/scripts/scriptdefault
Steps to reproduce
Install elsewhere and launch bin/cli.exe
.
Example Project
No need for a project.
What is the current bug behavior?
$ ./bin/cli.exe
./bin/cli.exe: line 1: cd: /Users/doe/TTool/bin: No such file or directory
What is the expected correct behavior?
TTool shall make no assumptions about where it is installed. It should find out itself.
Relevant logs and/or screenshots
$ ./bin/cli.exe
./bin/cli.exe: line 1: cd: /Users/doe/TTool/bin: No such file or directory
Possible fixes
$ cat bin/cli.exe
ttoolbin=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
cd "$ttoolbin"
java -Xmx2048m -jar ttool-cli.jar -debug -show ../modeling/scripts/scriptdefault