test: Use = instead of == for testing string equality in bash script.

Found by make syntax-check.
This commit is contained in:
Richard W.M. Jones
2014-02-13 21:45:47 +00:00
parent d56b8bcb2c
commit bf8d75590c

View File

@@ -64,7 +64,7 @@ if [ x"`wc -l stamp-script4.sh | awk '{print $1}'`" != x2 ]; then
echo "$0: stamp-script4.sh does not contain two lines."
exit 1
fi
if [ x"`head -n1 stamp-script4.sh`" == x"`tail -n1 stamp-script4.sh`" ]; then
if [ x"`head -n1 stamp-script4.sh`" = x"`tail -n1 stamp-script4.sh`" ]; then
echo "$0: stamp-script4.sh does not contain different paths."
exit 1
fi