X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=jarrg-owen.git;a=blobdiff_plain;f=jpctb;h=c4f2b6e6a241035ebc7f891765b2e5269676af50;hp=5157a054c211afa043f6cad945361f28c1f15101;hb=798b083bb1e01941a96b2eeef5101a47a118e4e9;hpb=27ad770787f1e70c9ec77065aa3511b9efc71b2d diff --git a/jpctb b/jpctb index 5157a05..c4f2b6e 100755 --- a/jpctb +++ b/jpctb @@ -37,6 +37,7 @@ nojre () { fail "couldn't find the right jre: $* perhaps you should make ypp's java symlink (normally yohoho/java) point to your jre, eg to /usr/lib/jvm/java-6-sun" +} badusage () { fail "bad usage: $*" @@ -80,8 +81,8 @@ fi yppdir="${yohoho%/*}" # this replicates the java-searching logic from yohoho/yohoho: -if [ -x "$yohoho/java/bin/java" ]; then - yppjava="$yohoho/java/bin/java" +if [ -x "$yppdir/java/bin/java" ]; then + yppjava="$yppdir/java/bin/java" elif [ -x "$JAVA_HOME/bin/java" ]; then yppjava="$JAVA_HOME/bin/java" else @@ -94,6 +95,7 @@ cat <&2 "control panel failed with exit status $rc"; exit "$rc" ;; +esac + #---------- create the temporary are and link farm ----------