From ccbcb4b5e93a691e7fdef31f50846f39d4f685bd Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Tue, 24 May 2016 13:48:41 -0700 Subject: [PATCH] Update grep for six to not falsely trigger when six is only a substring of a different library --- test/code-smell/use-compat-six.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/code-smell/use-compat-six.sh b/test/code-smell/use-compat-six.sh index 663d5279775..7ebc34d149e 100755 --- a/test/code-smell/use-compat-six.sh +++ b/test/code-smell/use-compat-six.sh @@ -3,7 +3,7 @@ # Do we want to check dynamic inventory, bin, etc? BASEDIR=${1-"lib"} -SIX_USERS=$(find "$BASEDIR" -name '*.py' -exec grep -H six \{\} \;|grep import |grep -v ansible.compat) +SIX_USERS=$(find "$BASEDIR" -name '*.py' -exec grep -wH six \{\} \;|grep import |grep -v ansible.compat) if test -n "$SIX_USERS" ; then printf "$SIX_USERS" exit 1