2016-11-02 21:47:42 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
grep '^#!' -RIn . 2>/dev/null | grep ':1:' | sed 's/:1:/:/' | grep -v -E \
|
2016-11-04 06:30:27 +00:00
|
|
|
-e '/.tox/' \
|
2016-11-02 21:47:42 +00:00
|
|
|
-e '^\./lib/ansible/modules/' \
|
|
|
|
-e '^\./test/integration/targets/[^/]*/library/[^/]*:#!powershell$' \
|
2016-11-04 18:34:01 +00:00
|
|
|
-e '^\./test/sanity/validate-modules/validate-modules:#!/usr/bin/env python2$' \
|
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$' \
|
|
|
|
-e ':#!/usr/bin/env fish$'
|
|
|
|
|
|
|
|
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
|