aboutsummaryrefslogtreecommitdiff
path: root/test/bin
blob: c514495a1434d7fba2f6e13293729e30aaf9fca5 (plain) (blame)
1
2
3
4
5
6
7
8
9
#!/bin/sh
for bin in bin/* ; do
    if sed 1q "$bin" | grep -q 'bash$' ; then
        bash -n "$bin" || exit 1
    elif sed 1q "$bin" | grep -q 'sh$' ; then
        sh -n "$bin" || exit 1
    fi
done
printf 'All shell scripts in bin parsed successfully.\n'