]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
Fix bashisms
authorMatthias Andree <matthias.andree@gmx.de>
Fri, 11 May 2012 23:14:30 +0000 (19:14 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 12 May 2012 02:13:21 +0000 (22:13 -0400)
These break the self-test suite on *BSD, and on some Linux distros
where /bin/sh is not implemented by bash.

Signed-off-by: Matthias Andree <matthias.andree@gmx.de>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
tests/f_mmp/script
tests/f_mmp_garbage/script
tests/m_mmp/script
tests/t_mmp_1on/script
tests/t_mmp_2off/script

index 4aca44752aef5dd2fa174bec6656e9d2fad38af7..3d4a04102567544b64debc223c7baf02f74582a7 100644 (file)
@@ -5,7 +5,7 @@ rm -f $test_name.failed $test_name.ok
 > $TMPFILE
 
 stat -f $TMPFILE | grep -q "Type: tmpfs"
-if [ $? == 0 ]; then
+if [ $? = 0 ]; then
        rm -f $TMPFILE
        echo "skipped for tmpfs (no O_DIRECT support)"
        return 0
@@ -39,7 +39,7 @@ killall -9 debugfs >> $test_name.log
 echo "e2fsck (should fail mmp_seq = EXT2_MMP_SEQ_FSCK) ..." >> $test_name.log
 $FSCK $FSCK_OPT $TMPFILE >> $test_name.log 2>&1
 status=$?
-if [ "$status" == 0 ] ; then
+if [ "$status" = 0 ] ; then
        echo "e2fsck with MMP as EXT2_MMP_SEQ_FSCK ran!" > $test_name.failed
        echo "failed"
        return 1
index 8b5a22a209b387cdef1f98c0624dde9dee2450fe..3b2954bfd6b4704464ee6f570fda965ce384bb7e 100644 (file)
@@ -5,7 +5,7 @@ rm -f $test_name.failed $test_name.ok
 > $TMPFILE
 
 stat -f $TMPFILE | grep -q "Type: tmpfs"
-if [ $? == 0 ] ; then
+if [ $? = 0 ] ; then
        rm -f $TMPFILE
        echo "skipped for tmpfs (no O_DIRECT support)"
        return 0
index b3e206a346dafbfa918be2a4262bd8d151a40ec5..a0c9deda9d32e1bb4803a7fc96017326b937199c 100644 (file)
@@ -5,7 +5,7 @@ export MKE2FS_DEVICE_SECTSIZE
 TMPFILE=test.img
 > $TMPFILE
 stat -f $TMPFILE | grep -q "Type: tmpfs"
-if [ $? == 0 ]; then
+if [ $? = 0 ]; then
        rm -f $TMPFILE
        echo "skipped for tmpfs (no O_DIRECT support)"
        return 0
index 3b0a3766edbae7702356e41bff426a6a7b674ddb..43afe9da16fe5b35ef9c1d235495dbc0ef151de7 100644 (file)
@@ -5,7 +5,7 @@ rm -f $test_name.failed $test_name.ok
 > $TMPFILE
 
 stat -f $TMPFILE | grep -q "Type: tmpfs"
-if [ $? == 0 ] ; then
+if [ $? = 0 ] ; then
        rm -f $TMPFILE
        echo "skipped for tmpfs (no O_DIRECT support)"
        return 0
index 56c6bedaf226073691dd5f4a5fa347457fa9c88f..d9a5b3e37a64266ade3b9714b6712a91db56d2f9 100644 (file)
@@ -5,7 +5,7 @@ rm -f $test_name.failed $test_name.ok
 > $TMPFILE
 
 stat -f $TMPFILE | grep -q "Type: tmpfs"
-if [ $? == 0 ]; then
+if [ $? = 0 ]; then
        rm -f $TMPFILE
        echo "skipped for tmpfs (no O_DIRECT support)"
        return 0