2016-11-02 22:47:42 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
2016-11-08 01:46:33 +01:00
|
|
|
grep '^#!' -rIn . \
|
|
|
|
--exclude-dir .git \
|
|
|
|
--exclude-dir .tox \
|
|
|
|
| grep ':1:' | sed 's/:1:/:/' | grep -v -E \
|
2016-11-02 22:47:42 +01:00
|
|
|
-e '^\./lib/ansible/modules/' \
|
|
|
|
-e '^\./test/integration/targets/[^/]*/library/[^/]*:#!powershell$' \
|
2017-01-27 20:53:02 +01:00
|
|
|
-e '^\./test/integration/targets/[^/]*/library/[^/]*:#!/usr/bin/python$' \
|
2017-05-01 17:52:25 +02:00
|
|
|
-e '^\./test/integration/targets/module_precedence/.*lib.*:#!/usr/bin/python$' \
|
2017-01-05 19:22:00 +01:00
|
|
|
-e '^\./hacking/cherrypick.py:#!/usr/bin/env python3$' \
|
2016-11-02 22:47:42 +01: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 19:20:58 +01:00
|
|
|
-e ':#!/usr/bin/env fish$' \
|
2018-01-24 15:12:30 +01:00
|
|
|
-e ':#!/usr/bin/env pwsh$' \
|
2016-11-02 22:47:42 +01: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
|