mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
417 B
Bash
14 lines
417 B
Bash
9 years ago
|
#!/bin/sh
|
||
|
|
||
|
BASEDIR=${1-"."}
|
||
|
|
||
|
URLLIB_USERS=$(find "$BASEDIR" -name '*.py' -exec grep -H urlopen \{\} \;)
|
||
9 years ago
|
URLLIB_USERS=$(echo "$URLLIB_USERS" | sed '/\(\n\|lib\/ansible\/module_utils\/urls.py\|lib\/ansible\/module_utils\/six.py\|lib\/ansible\/compat\/six\/_six.py\|.tox\)/d')
|
||
9 years ago
|
URLLIB_USERS=$(echo "$URLLIB_USERS" | sed '/^[^:]\+:#/d')
|
||
9 years ago
|
if test -n "$URLLIB_USERS" ; then
|
||
|
printf "$URLLIB_USERS"
|
||
|
exit 1
|
||
|
else
|
||
|
exit 0
|
||
|
fi
|