From: Theodore Ts'o Date: Sun, 25 May 2008 23:45:29 +0000 (-0400) Subject: Remove bashism in test script for libblkid X-Git-Tag: v1.41-WIP-0617~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=168b6b53be70f77150712d63b183a026d0bf5543;p=thirdparty%2Fe2fsprogs.git Remove bashism in test script for libblkid Thanks to Christian Kujau for pointing this out. Signed-off-by: "Theodore Ts'o" --- diff --git a/lib/blkid/test_probe.in b/lib/blkid/test_probe.in index 4051c17bb..87ac2b2b7 100644 --- a/lib/blkid/test_probe.in +++ b/lib/blkid/test_probe.in @@ -21,9 +21,9 @@ do fi bunzip2 < $SRCDIR/tests/$i.img.bz2 > tests/tmp/test.img.$$ # swap is native-endian, so regenerate before testing - if [ "$i" == "swap0" ]; then + if [ "$i" = "swap0" ]; then mkswap -v0 tests/tmp/test.img.$$ > /dev/null - elif [ "$i" == "swap1" ]; then + elif [ "$i" = "swap1" ]; then mkswap -v1 -L SWAP-TEST -U 8ff8e77f-8553-485e-8656-58be67a81666 tests/tmp/test.img.$$ >/dev/null fi ./tst_probe tests/tmp/test.img.$$ > tests/$i.out