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