]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
t_mmp_fail: resolve bash-ism [ a == b ] to [ a = b ]
authorMatthias Andree <matthias.andree@gmx.de>
Thu, 26 Jun 2025 20:28:42 +0000 (22:28 +0200)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 1 Jul 2025 14:32:24 +0000 (10:32 -0400)
for those systems where sh does not support the == operator in
the test or [ built-ins, for instance, on FreeBSD's sh.

Signed-off-by: Matthias Andree <matthias.andree@gmx.de>
Link: https://lore.kernel.org/r/20250626202919.321842-3-matthias.andree@gmx.de
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
tests/t_mmp_fail/script

index 5fa6a846b70e77e0ee2c4d50b408187d217b4397..57428fb76ae1cc2706e60a732da0395d0c8618e1 100644 (file)
@@ -10,14 +10,14 @@ fi
 
 $TUNE2FS -O project $TMPFILE >> $test_name.log 2>&1
 status=$?
-if [ "$status" == 0 ] ; then
+if [ "$status" = 0 ] ; then
        echo "'tune2fs -O project' succeeded on small inode" > $test_name.failed
        echo "$test_name: $test_description: failed"
        return 1
 fi
 $TUNE2FS -o bad_option $TMPFILE >> $test_name.log 2>&1
 status=$?
-if [ "$status" == 0 ] ; then
+if [ "$status" = 0 ] ; then
        echo "'tune2fs -o bad_option' succeeded" > $test_name.failed
        echo "$test_name: $test_description: failed"
        return 1