2016-11-02 21:47:42 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2016-11-08 00:46:33 +00:00
|
|
|
grep '^#!' -rIn . \
|
|
|
|
--exclude-dir .git \
|
|
|
|
--exclude-dir .tox \
|
|
|
|
| grep ':1:' | sed 's/:1:/:/' | grep -v -E \
|
2016-11-02 21:47:42 +00:00
|
|
|
-e '^\./lib/ansible/modules/' \
|
|
|
|
-e '^\./test/integration/targets/[^/]*/library/[^/]*:#!powershell$' \
|
2017-01-27 19:53:02 +00:00
|
|
|
-e '^\./test/integration/targets/[^/]*/library/[^/]*:#!/usr/bin/python$' \
|
2016-11-04 18:34:01 +00:00
|
|
|
-e '^\./test/sanity/validate-modules/validate-modules:#!/usr/bin/env python2$' \
|
2017-01-05 18:22:00 +00:00
|
|
|
-e '^\./hacking/cherrypick.py:#!/usr/bin/env python3$' \
|
2016-11-02 21:47:42 +00:00
|
|
|
-e ':#!/bin/sh$' \
|
|
|
|
-e ':#!/bin/bash( -[eux]|$)' \
|
|
|
|
-e ':#!/usr/bin/make -f$' \
|
|
|
|
-e ':#!/usr/bin/env python$' \
|
|
|
|
-e ':#!/usr/bin/env bash$' \
|
2017-01-05 18:20:58 +00:00
|
|
|
-e ':#!/usr/bin/env fish$' \
|
2016-11-02 21:47:42 +00:00
|
|
|
|
|
|
|
if [ $? -ne 1 ]; then
|
|
|
|
echo "One or more file(s) listed above have an unexpected shebang."
|
|
|
|
echo "See $0 for the list of acceptable values."
|
|
|
|
exit 1
|
|
|
|
fi
|