changeset 27:14ba7a4ea7cd

Make Linux run script function when called from different directory
author Fox
date Fri, 06 May 2022 14:54:22 +0200
parents 03fb5ab2e0a6
children cbaf2bbb1775
files package.gui_sh
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/package.gui_sh	Fri May 06 13:57:48 2022 +0200
+++ b/package.gui_sh	Fri May 06 14:54:22 2022 +0200
@@ -19,6 +19,7 @@
 cat > ./build/packed/run.sh <<EOF
 #!/bin/sh
 export CLASSPATH=./lucene-core-3.0.3.jar:./JUnotu.jar
+cd \$(dirname \$0)
 java junotu.Main
 EOF
 chmod +x ./build/packed/run.sh