chiark / gitweb /
jpctb: Fix syntax
[jarrg-owen.git] / jpctb
diff --git a/jpctb b/jpctb
index 5157a054c211afa043f6cad945361f28c1f15101..7fc11b8e7516d2af95ca06724115a1c364d73815 100755 (executable)
--- 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: $*"
@@ -117,11 +118,10 @@ else
                nojre "java binary not in jre dir"
                ;;
        esac
-       fi
 fi
 
 case "$javadir" in
-|/|/usr)       nojre "javadir is $javadir (and even found $javadir/jre!)" ;;
+''|/|/usr)     nojre "javadir is $javadir (and even found $javadir/jre!)" ;;
 /*)            ;;
 *)             javadir="$PWD/$javadir" ;;
 esac