mirror of
https://github.com/koalaman/shellcheck
synced 2025-08-24 15:15:42 -07:00
utils/webcheck.sh: only check for Perl stuff *once*
This commit is contained in:
parent
a419593501
commit
979a65ddb0
1 changed files with 2 additions and 1 deletions
|
@ -72,7 +72,6 @@ _check_file() {
|
||||||
}
|
}
|
||||||
|
|
||||||
_simple_check "$_file" || return
|
_simple_check "$_file" || return
|
||||||
_perl_check || return
|
|
||||||
_shellcheck < "$_file"
|
_shellcheck < "$_file"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -95,6 +94,8 @@ case "${1:-}" in
|
||||||
""|"help"|"-h"|"--help") _help; exit ;;
|
""|"help"|"-h"|"--help") _help; exit ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
_perl_check || exit 1
|
||||||
|
|
||||||
while (( $# )); do
|
while (( $# )); do
|
||||||
echo >&2 ":: Checking '${1}'..."
|
echo >&2 ":: Checking '${1}'..."
|
||||||
_check_file "${1}"
|
_check_file "${1}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue