utils/webcheck.sh: only check for Perl stuff *once*

This commit is contained in:
Ky-Anh Huynh 2015-08-06 23:50:13 +07:00
commit 979a65ddb0

View file

@ -72,7 +72,6 @@ _check_file() {
}
_simple_check "$_file" || return
_perl_check || return
_shellcheck < "$_file"
}
@ -95,6 +94,8 @@ case "${1:-}" in
""|"help"|"-h"|"--help") _help; exit ;;
esac
_perl_check || exit 1
while (( $# )); do
echo >&2 ":: Checking '${1}'..."
_check_file "${1}"