Whamcloud - gitweb
b=22976 fix bash syntax error
authorBrian J. Murrell <brian.murrell@oracle.com>
Thu, 29 Jul 2010 20:24:43 +0000 (00:24 +0400)
committerMikhail Pershin <tappro@sun.com>
Fri, 30 Jul 2010 18:52:19 +0000 (22:52 +0400)
When using "test" to compare strings, both sides of the comparison
should either be quoted or not quoted, not one of each.
= should be used for equality in portable tests.

i=mjmac
i=whitebear

lustre/liblustre/genlib.sh

index 4cbef25..2c644d5 100755 (executable)
@@ -14,7 +14,7 @@ set -e
 AR=/usr/bin/ar
 # see http://osdir.com/ml/gmane.comp.gnu.binutils.bugs/2006-01/msg00016.php
 ppc64_CPU=`uname -p`
 AR=/usr/bin/ar
 # see http://osdir.com/ml/gmane.comp.gnu.binutils.bugs/2006-01/msg00016.php
 ppc64_CPU=`uname -p`
-if [ ${ppc64_CPU} == "ppc64" ]; then
+if [ "x${ppc64_CPU}" = "xppc64" ]; then
   LD="gcc -m64"
 else
   LD="gcc"
   LD="gcc -m64"
 else
   LD="gcc"