Update grep for six to not falsely trigger when six is only a substring of a different library
This commit is contained in:
parent
4304574c00
commit
ccbcb4b5e9
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
||||||
# Do we want to check dynamic inventory, bin, etc?
|
# Do we want to check dynamic inventory, bin, etc?
|
||||||
BASEDIR=${1-"lib"}
|
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
|
if test -n "$SIX_USERS" ; then
|
||||||
printf "$SIX_USERS"
|
printf "$SIX_USERS"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in a new issue