Realpath for Linux bash-script (#331)

Bash script execute with real path of the script
This commit is contained in:
Michael Schaar 2019-09-11 12:27:07 +02:00 committed by Helmut Neemann
parent 80138b7cf9
commit 9773df8c15

View File

@ -1,3 +1,3 @@
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
DIR="$( cd "$( dirname "$( realpath "${BASH_SOURCE[0]}" )" )" >/dev/null && pwd )"
java -jar $DIR/Digital.jar "$1"