aboutsummaryrefslogtreecommitdiff
path: root/check/bin
blob: a4d5e452d4a14380634f82a261807aa4fae43b72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
for bin in bin/* ; do
    [ -f "$bin" ] || continue
    hb=$(sed 1q "$bin") || exit
    case $hb in
        *bash)
            bash -n "$bin" || exit
            ;;
        *sh)
            sh -n "$bin" || exit
            ;;
    esac
done
printf 'All shell scripts in bin parsed successfully.\n'