From: ceriel Date: Tue, 18 Oct 1994 16:07:27 +0000 (+0000) Subject: A couple of fixes: use Bourne shell, and fixed recursive call of get_sys X-Git-Tag: release-5-5~154 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=cfbdef35e7e2ba3b15fa7c428fb482e0ec21f5aa;p=ack.git A couple of fixes: use Bourne shell, and fixed recursive call of get_sys --- diff --git a/first/first b/first/first index dd28c46c9..a24b6d14e 100755 --- a/first/first +++ b/first/first @@ -1,3 +1,4 @@ +#! /bin/sh case $0 in */first) FDIR=`expr $0 : '\(.*\)/first'` @@ -75,11 +76,11 @@ while : do for i in $MACH_LIST do - if [ $i = $ACM ] + if [ $i = "$ACM" ] then break fi done - if [ $i = $ACM ] + if [ $i = "$ACM" ] then break fi echo "This installation script has no knowledge about $SYSNAME. diff --git a/first/get_sys b/first/get_sys index bb0f2c4ee..0ff18596a 100755 --- a/first/get_sys +++ b/first/get_sys @@ -146,7 +146,7 @@ case X$ANS in Xj*|Xy*|X) break ;; Xn*) echo Ok, I will give you another chance.... - . get_sys + . $0 break ;; *) echo "I do not understand your answer ($ANS). Try again."