chiark / gitweb /
jpctb: Fix mistaken use of ${jppjava#..} when we meant %
authorIan Jackson <ian@liberator.relativity.greenend.org.uk>
Sun, 22 Aug 2010 18:47:12 +0000 (19:47 +0100)
committerIan Jackson <ian@liberator.relativity.greenend.org.uk>
Sun, 22 Aug 2010 18:47:12 +0000 (19:47 +0100)
jpctb

diff --git a/jpctb b/jpctb
index ee8ff62..7cca6df 100755 (executable)
--- a/jpctb
+++ b/jpctb
@@ -103,7 +103,7 @@ if ! [ -x "$yppjava" ]; then
        nojre "bad java ypp"
 fi
 
-javadir="${yppjava#/bin/java}"
+javadir="${yppjava%/bin/java}"
 if [ -x "$javadir/jre/bin/java" ]; then
        echo "   java/ points to the jre, good"
 else