Whitelist the hacking/cherrypick script's use of python3
This commit is contained in:
parent
8f6009de0f
commit
d001d250f0
2 changed files with 3 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
|
@ -7,12 +7,13 @@ grep '^#!' -rIn . \
|
||||||
-e '^\./lib/ansible/modules/' \
|
-e '^\./lib/ansible/modules/' \
|
||||||
-e '^\./test/integration/targets/[^/]*/library/[^/]*:#!powershell$' \
|
-e '^\./test/integration/targets/[^/]*/library/[^/]*:#!powershell$' \
|
||||||
-e '^\./test/sanity/validate-modules/validate-modules:#!/usr/bin/env python2$' \
|
-e '^\./test/sanity/validate-modules/validate-modules:#!/usr/bin/env python2$' \
|
||||||
|
-e 'i^\./hacking/cherrypick.py:#!/usr/bin/env python3$' \
|
||||||
-e ':#!/bin/sh$' \
|
-e ':#!/bin/sh$' \
|
||||||
-e ':#!/bin/bash( -[eux]|$)' \
|
-e ':#!/bin/bash( -[eux]|$)' \
|
||||||
-e ':#!/usr/bin/make -f$' \
|
-e ':#!/usr/bin/make -f$' \
|
||||||
-e ':#!/usr/bin/env python$' \
|
-e ':#!/usr/bin/env python$' \
|
||||||
-e ':#!/usr/bin/env bash$' \
|
-e ':#!/usr/bin/env bash$' \
|
||||||
-e ':#!/usr/bin/env fish$'
|
-e ':#!/usr/bin/env fish$' \
|
||||||
|
|
||||||
if [ $? -ne 1 ]; then
|
if [ $? -ne 1 ]; then
|
||||||
echo "One or more file(s) listed above have an unexpected shebang."
|
echo "One or more file(s) listed above have an unexpected shebang."
|
||||||
|
|
Loading…
Add table
Reference in a new issue