From ba3e66c0e42f5a5785710483a8f84cc54d686272 Mon Sep 17 00:00:00 2001 From: Hari Sekhon Date: Thu, 30 Jun 2016 21:58:29 +0100 Subject: [PATCH] updated check_shell_syntax.sh --- check_shell_syntax.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_shell_syntax.sh b/check_shell_syntax.sh index da1d816d..adbac7e8 100755 --- a/check_shell_syntax.sh +++ b/check_shell_syntax.sh @@ -16,7 +16,7 @@ # This really only checks basic syntax, if you're made command errors this won't catch it if [ -z "$(find -L "${1:-.}" -type f -iname '*.sh')" ]; then - return &>/dev/null + return 0 &>/dev/null || : exit 0 fi