diff options
Diffstat (limited to 'bin/proguardgui.sh')
-rwxr-xr-x | bin/proguardgui.sh | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/bin/proguardgui.sh b/bin/proguardgui.sh index 2544f29..aba7f62 100755 --- a/bin/proguardgui.sh +++ b/bin/proguardgui.sh @@ -7,7 +7,19 @@ # you'll have to add escaped quotes around them, e.g. # "\"/My Directory/My File.txt\"" -PROGUARD_HOME=`dirname "$0"`/.. +# Account for possibly missing/basic readlink. +# POSIX conformant (dash/ksh/zsh/bash). +PROGUARD=`readlink -f "$0" 2>/dev/null` +if test "$PROGUARD" = '' +then + PROGUARD=`readlink "$0" 2>/dev/null` + if test "$PROGUARD" = '' + then + PROGUARD="$0" + fi +fi + +PROGUARD_HOME=`dirname "$PROGUARD"`/.. # On Linux, Java 1.6.0_24 and higher hang when starting the GUI: # http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7027598 |