aboutsummaryrefslogtreecommitdiff
path: root/check/games
diff options
context:
space:
mode:
Diffstat (limited to 'check/games')
-rwxr-xr-xcheck/games14
1 files changed, 14 insertions, 0 deletions
diff --git a/check/games b/check/games
new file mode 100755
index 00000000..3afe6414
--- /dev/null
+++ b/check/games
@@ -0,0 +1,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'