Skip to content

Commit

Permalink
Update grep for six to not falsely trigger when six is only a substri…
Browse files Browse the repository at this point in the history
…ng of a different library
  • Loading branch information
abadger committed May 24, 2016
1 parent de7b0e9 commit 650bfdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/code-smell/use-compat-six.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 650bfdc

Please sign in to comment.