use a more portable way to get the directory of the script
parent
6fb051d7aa
commit
19ea017ea6
|
@ -1,3 +1,5 @@
|
|||
#!/bin/sh
|
||||
cd ${0%Magarena.command}; java -Xms256M -Xmx256M -jar Magarena.exe
|
||||
self="${0#./}"
|
||||
base="${self%/*}"
|
||||
cd $base; java -Xms256M -Xmx256M -jar Magarena.exe
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#!/bin/sh
|
||||
cd ${0%Magarena.sh}; java -Xms256M -Xmx256M -jar Magarena.exe
|
||||
self="${0#./}"
|
||||
base="${self%/*}"
|
||||
cd $base; java -Xms256M -Xmx256M -jar Magarena.exe
|
||||
|
||||
|
|
Loading…
Reference in New Issue