summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToshio Kuratomi <toshio@fedoraproject.org>2016-05-24 13:48:41 -0700
committerToshio Kuratomi <toshio@fedoraproject.org>2016-05-24 13:49:37 -0700
commit650bfdce8f5ea0d83450e628db622d7ff34cb0a7 (patch)
tree45bd84945c4f27d4b727b00f99fecd68e77867ea
parentde7b0e9da18578ae8a29cdd9c34af7f7478a8431 (diff)
downloadansible-650bfdce8f5ea0d83450e628db622d7ff34cb0a7.tar.gz
Update grep for six to not falsely trigger when six is only a substring of a different library
-rwxr-xr-xtest/code-smell/use-compat-six.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/code-smell/use-compat-six.sh b/test/code-smell/use-compat-six.sh
index 663d527977..7ebc34d149 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