peq-quests/check_all
2017-08-23 20:36:37 -05:00

18 lines
No EOL
380 B
Bash
Executable file

#!/bin/sh
echo "Checking Perl scripts..."
find . -name "*.pl" \
| while read s
do
if ! perl -c "$s" 2>/dev/null; then
echo "$s is invalid."
fi
done
echo "Checking Lua scripts..."
find . -name "*.lua" \
| while read s
do
if ! luac -p "$s" 2>/dev/null; then
echo "$s is invalid."
fi
done
echo "Script check completed."