mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
xfstests: Convert all tests to use /bin/bash
While most tests use /bin/sh, they are dependent on /bin/sh being a bash shell. Convert all the tests to execute via /bin/bash as it is much, much simpler than trying to debug and remove all the bashisms throughout the test code. Signed-off-by: Dave Chinner <david@fromorbit.com> Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#! /bin/sh
|
||||
#! /bin/bash
|
||||
# FS QA Test No. 093
|
||||
#
|
||||
# Test out for IRIX the removal of file capabilities when
|
||||
@@ -75,7 +75,7 @@ user=`grep ':all=:all=' /etc/capability | tail -1 | $AWK_PROG -F: '{print $1}'`
|
||||
uid=`grep $user /etc/passwd | $AWK_PROG -F: '{print $3}'`
|
||||
|
||||
cat >$tmp.append <<EOF
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
echo data >>$file
|
||||
EOF
|
||||
chmod ugo+x $tmp.append
|
||||
|
||||
Reference in New Issue
Block a user