Skip to content

Commit 1ebc128

Browse files
committed
Fix for os version handling.
1 parent b3d8bea commit 1ebc128

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/configure

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -642,11 +642,11 @@ starts 'checking host system type...'
642642
EOT
643643
TEMPLATE=generic
644644
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.]*$//'`
647647
GUESS=`grep "$host_os_no_ver" template/.similar 2>/dev/null`
648648
fi
649-
if test $GUESS
649+
if test "$GUESS"
650650
then
651651
TEMPLATE=`echo $GUESS | sed 's/.*=//'`
652652
fi

src/configure.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,11 @@ starts 'checking host system type...'
8080
EOT
8181
TEMPLATE=generic
8282
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.]*$//'`
8585
GUESS=`grep "$host_os_no_ver" template/.similar 2>/dev/null`
8686
fi
87-
if test $GUESS
87+
if test "$GUESS"
8888
then
8989
TEMPLATE=`echo $GUESS | sed 's/.*=//'`
9090
fi

0 commit comments

Comments
 (0)