2016-08-23 22:13:44 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2016-11-08 01:46:33 +01:00
|
|
|
BASESTRING_USERS=$(grep -r basestring . \
|
|
|
|
--exclude-dir .git \
|
|
|
|
--exclude-dir .tox \
|
2016-11-04 07:30:27 +01:00
|
|
|
| grep isinstance \
|
|
|
|
| grep -v \
|
2016-11-30 06:21:53 +01:00
|
|
|
-e test/results/ \
|
2016-11-04 07:30:27 +01:00
|
|
|
-e lib/ansible/compat/six/_six.py \
|
|
|
|
-e lib/ansible/module_utils/six.py \
|
2016-12-06 17:29:16 +01:00
|
|
|
-e lib/ansible/modules/ \
|
2016-11-08 01:46:33 +01:00
|
|
|
-e '^[^:]*:#'
|
2016-11-04 07:30:27 +01:00
|
|
|
)
|
2016-08-23 22:13:44 +02:00
|
|
|
|
2016-11-08 01:46:33 +01:00
|
|
|
if [ "${BASESTRING_USERS}" ]; then
|
|
|
|
echo "${BASESTRING_USERS}"
|
|
|
|
exit 1
|
2016-08-23 22:13:44 +02:00
|
|
|
fi
|