File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -642,11 +642,11 @@ starts 'checking host system type...'
642
642
EOT
643
643
TEMPLATE=generic
644
644
GUESS=` grep " $host_os " template/.similar 2> /dev/null`
645
- if test $GUESS
646
- then host_os_no_ver=` grep " $host_os " | sed ' s/0-9.*$//' `
645
+ if test ! " $GUESS "
646
+ then host_os_no_ver=` echo " $host_os " | sed ' s/[ 0-9.] *$//' `
647
647
GUESS=` grep " $host_os_no_ver " template/.similar 2> /dev/null`
648
648
fi
649
- if test $GUESS
649
+ if test " $GUESS "
650
650
then
651
651
TEMPLATE=` echo $GUESS | sed ' s/.*=//' `
652
652
fi
Original file line number Diff line number Diff line change @@ -80,11 +80,11 @@ starts 'checking host system type...'
80
80
EOT
81
81
TEMPLATE=generic
82
82
GUESS=`grep "$host_os" template/.similar 2>/dev/null`
83
- if test $GUESS
84
- then host_os_no_ver=`grep "$host_os" | sed 's/[0-9.]*$//'`
83
+ if test ! " $GUESS"
84
+ then host_os_no_ver=`echo "$host_os" | sed 's/[0-9.]*$//'`
85
85
GUESS=`grep "$host_os_no_ver" template/.similar 2>/dev/null`
86
86
fi
87
- if test $GUESS
87
+ if test " $GUESS"
88
88
then
89
89
TEMPLATE=`echo $GUESS | sed 's/.*=//'`
90
90
fi
You can’t perform that action at this time.
0 commit comments