[Pkg-libvirt-commits] [libguestfs] 11/54: test: Use = instead of == for testing string equality in bash script.

Hilko Bengen bengen at moszumanska.debian.org
Sun Mar 9 11:21:15 UTC 2014


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to branch debian
in repository libguestfs.

commit e9339c9b71fb6bfa34791958b3d97e4434962b78
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.
    
    (cherry picked from commit bf8d75590c3924c3ebe343bf354e93ec7e84ccf9)
---
 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