ソースを参照

A couple of fixes: use Bourne shell, and fixed recursive call of get_sys

ceriel 30 年 前
コミット
ddef45be2f
2 ファイル変更4 行追加3 行削除
  1. 3 2
      first/first
  2. 1 1
      first/get_sys

+ 3 - 2
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.

+ 1 - 1
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."