From 32dcdbc546da0b874c2c18cdd6f1ebee5c20e182 Mon Sep 17 00:00:00 2001 From: Hari Sekhon Date: Thu, 30 Jun 2016 21:03:06 +0100 Subject: [PATCH] updated python_find_quit.sh --- python_find_quit.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python_find_quit.sh b/python_find_quit.sh index fed157ad..d8b42167 100755 --- a/python_find_quit.sh +++ b/python_find_quit.sh @@ -19,6 +19,10 @@ srcdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" . "$srcdir/utils.sh" +if [ -z "$(find -L "${1:-.}" -maxdepth 2 -type f -iname '*.py' -o -iname '*.jy')" ]; then + exit 0 +fi + section "Python - finding any instances of calling quit() in code which are probably typos for custom qquit()" echo