]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
[Bug 304] faxaddmodem has some improper shell code
authorDarren Nickerson <darren.nickerson@ifax.com>
Fri, 14 Jun 2002 19:09:58 +0000 (19:09 +0000)
committerDarren Nickerson <darren.nickerson@ifax.com>
Fri, 14 Jun 2002 19:09:58 +0000 (19:09 +0000)
Minor portability fix

etc/faxaddmodem.sh.in

index f2c7e34f811eefe337b262175a9f313d9f1fafbe..4cd46a2a0e62d841a075cad165e90d8e55284ff3 100644 (file)
@@ -1135,7 +1135,7 @@ if [ "$RESULT" = "OK" ]; then
     done;
     MODEMCLASSES=`echo $MODEMCLASSES | $SED -e 's/3/2.0/g' -e 's/4/1.0/g' -e 's/5/2.1/g' -e 's/ $//g'`
     SUPPORT=`echo $SUPPORT | $SED -e 's/3/2.0/g' -e 's/4/1.0/g' -e 's/5/2.1/g'`.
-    if [ "`echo $SUPPORT | $GREP " "`" == "" ]; then echo $SUPPORT; fi
+    if [ "`echo $SUPPORT | $GREP " "`" = "" ]; then echo $SUPPORT; fi
     case "$MODEMCLASSES" in
     "")                        giveup;;
     "1")               ModemType=Class1; configureClass1Modem;;
@@ -1146,11 +1146,11 @@ if [ "$RESULT" = "OK" ]; then
     *)
        DEFAULTCLASS=`echo $MODEMCLASSES | $SED 's/\([^ ]*\).*/\1/g'`
        x=""
-       while [ "`echo " $MODEMCLASSES " | $GREP " $x "`" == "" ]; do
+       while [ "`echo " $MODEMCLASSES " | $GREP " $x "`" = "" ]; do
            echo $SUPPORT
            prompt "How should it be configured [$DEFAULTCLASS]?"
            read x
-           if [ "$x" == "" ]; then x=$DEFAULTCLASS; fi
+           if [ "$x" = "" ]; then x=$DEFAULTCLASS; fi
        done
        echo ""
        case "$x" in