From: Brian J. Murrell Date: Wed, 9 Jun 2010 16:51:01 +0000 (-0400) Subject: b=22976 fix bash syntax error X-Git-Tag: v1_8_3_54~31 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=ec1c142313bbc19bdf8df60bd837798b273d9643;p=fs%2Flustre-release.git b=22976 fix bash syntax error 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 --- diff --git a/lustre/liblustre/genlib.sh b/lustre/liblustre/genlib.sh index ef6f81f..0d23e56 100755 --- a/lustre/liblustre/genlib.sh +++ b/lustre/liblustre/genlib.sh @@ -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` -if [ ${ppc64_CPU} == "ppc64" ]; then +if [ "x${ppc64_CPU}" = "xppc64" ]; then LD="gcc -m64" else LD="gcc"