2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2018 Oracle, Inc.
7 # checkbashisms on all /bin/sh scripts. This is a maintainer script.
10 seqres=$RESULT_DIR/$seq
11 echo "QA output created by $seq"
15 status=1 # failure is the default!
16 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
18 # get standard environment
21 # real QA test starts here
24 _require_command "$CHECKBASHISMS_PROG" checkbashisms
26 test -z "$WORKAREA" && _notrun "Can't find xfsprogs source"
30 echo "Silence is golden"
31 find $WORKAREA -type f -name 'xfs*.sh' -print0 | xargs -0 grep '^#!.*/bin/sh' | sed -e 's/:.*$//g' | while read f; do
32 $CHECKBASHISMS_PROG $f