* testsuite/icf_safe_so_test.sh: Add #!/bin/sh to start.
[external/binutils.git] / gold / testsuite / icf_safe_test.sh
index d26d40b..74a7fb9 100755 (executable)
@@ -1,3 +1,5 @@
+#!/bin/sh
+
 # icf_safe_test.sh -- test --icf=safe
 
 # Copyright 2009 Free Software Foundation, Inc.
@@ -50,7 +52,7 @@ check_fold()
 arch_specific_safe_fold()
 {
     grep_x86=`grep -q -e "Advanced Micro Devices X86-64" -e "Intel 80386" -e "ARM" $2`
-    if [ $? == 0 ];
+    if [ $? -eq 0 ];
     then
       check_fold $1 $3 $4
     else