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