aboutsummaryrefslogblamecommitdiff
path: root/check/games
blob: d3b5feacb47d5db004ef2729d367243f16eee50e (plain) (tree)
1
2
3
4
5
6
7
8
9

                        
                              


                                
                                   

              
                                 
              
        

                                                          
#!/bin/sh
for game in games/* ; do
    [ -x "$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'