[Pkg-libvirt-commits] [libguestfs] 221/233: test: Use = instead of == for testing string equality in bash script.
Hilko Bengen
bengen at moszumanska.debian.org
Wed Feb 19 21:12:30 UTC 2014
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to branch experimental
in repository libguestfs.
commit bf8d75590c3924c3ebe343bf354e93ec7e84ccf9
Author: Richard W.M. Jones <rjones at redhat.com>
Date: Thu Feb 13 21:45:47 2014 +0000
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 a62cfce..8193af0 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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git
More information about the Pkg-libvirt-commits
mailing list