aboutsummaryrefslogtreecommitdiff
path: root/check/bin.sh
blob: 78c5e57d0e6957e3d27067d29d83c21149843ee1 (plain)
1
2
3
4
5
6
7
8
9
10
11
# POSIX shell
for bin in bin/*.sh ; do
    sh -n -- "${bin%.sh}" || exit
done

# GNU Bash
if command -v bash >/dev/null 2>&1 ; then
    for bin in bin/*.bash ; do
        bash -n -- "${bin%.bash}" || exit
    done
fi