chiark / gitweb /
Does not work yet - must trap other calls too
[jarrg-ian.git] / jpctb
diff --git a/jpctb b/jpctb
index b2aa7213f07798013d65fb673270e0bde32527db..c50b43baaed84e476373a57e34db8b99fd39cce4 100755 (executable)
--- a/jpctb
+++ b/jpctb
@@ -7,10 +7,10 @@ END
 jpctb_base="$0"
 jpctb_base="${jpctb_base%/*}"
 
-if [ $* -lt 2 ]; then usage >&2; exit 127; if
+if [ $# -lt 2 ]; then usage >&2; exit 127; fi
 
 export JWRAP_EXTDIR="$1"; shift
-export JWRAP_SCRIPT="$jpctb_base/jwrap-script-pctb"
+export JWRAP_SCRIPT="$jpctb_base/jwrap-script-jpctb"
 
 if [ x"$LD_PRELOAD" != x ]; then LD_PRELOAD="$LD_PRELOAD:"; fi
 export LD_PRELOAD="${LD_PRELOAD}$jpctb_base/libjwrap.so.1.0"