From bf8d75590c3924c3ebe343bf354e93ec7e84ccf9 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 13 Feb 2014 21:45:47 +0000 Subject: [PATCH] test: Use = instead of == for testing string equality in bash script. Found by make syntax-check. --- sysprep/test-virt-sysprep-script.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysprep/test-virt-sysprep-script.sh b/sysprep/test-virt-sysprep-script.sh index a62cfce59..8193af0e5 100755 --- a/sysprep/test-virt-sysprep-script.sh +++ b/sysprep/test-virt-sysprep-script.sh @@ -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