From 59f416847e48514444610e86abaf16b22dca1bbf Mon Sep 17 00:00:00 2001 From: Hari Sekhon Date: Thu, 30 Jun 2016 21:00:18 +0100 Subject: [PATCH] updated check_perl_syntax.sh --- check_perl_syntax.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/check_perl_syntax.sh b/check_perl_syntax.sh index 2bd93cca..13a020f1 100755 --- a/check_perl_syntax.sh +++ b/check_perl_syntax.sh @@ -19,9 +19,13 @@ srcdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" . "$srcdir/utils.sh" +if [ -z "$(find -L "${1:-.}" -maxdepth 2 -type f -iname '*.pl' -o -iname '*.pm' -o -iname '*.t')" ]; then + exit 0 +fi + section "Perl Syntax Checks" -for x in $(find "${1:-.}" -maxdepth 2 -type f -iname '*.pl' -o -iname '*.pm' -o -iname '*.t'); do +for x in $(find -L "${1:-.}" -maxdepth 2 -type f -iname '*.pl' -o -iname '*.pm' -o -iname '*.t'); do isExcluded "$x" && continue #printf "%-50s" "$x:" #$perl -Tc $I_lib $x