Almost all shell tests use /bin/bash already.
In some cases we've had shell tests use /bin/sh, but still having
a bashism. This causes failures on systems where sh is dash or another,
strict bourne shell.
Flag those via check-tree.sh.
Signed-off-by: Florian Westphal <fw@strlen.de>
fi
for t in "${SHELL_TESTS[@]}" ; do
check_shell_dumps "$t"
+ head -n 1 "$t" |grep -q '^#!/bin/sh' && echo "$t uses sh instead of bash" && EXIT_CODE=1
done
##############################################################################