Fix execution of tclsh.
[yaz-moved-to-github.git] / util / yaz-asncomp
index 280ac3f..f858c77 100755 (executable)
@@ -1,12 +1,12 @@
 #!/bin/sh
 # the next line restarts using tclsh \
-if [ -f /usr/local/bin/tclsh8.4 ]; then exec tclsh8.4 "$0" "$@"; echo exec tclsh "$0" "$@"; fi
+if [ -f /usr/local/bin/tclsh8.4 ]; then exec tclsh8.4 "$0" "$@"; else exec tclsh "$0" "$@"; fi
 #
 # yaz-comp: ASN.1 Compiler for YAZ
 # (c) Index Data 1996-2004
 # See the file LICENSE for details.
 #
-# $Id: yaz-asncomp,v 1.6 2006-05-22 15:52:40 mike Exp $
+# $Id: yaz-asncomp,v 1.7 2006-05-22 19:08:38 adam Exp $
 #
 
 set yc_version 0.4