mirror of
https://github.com/ansible/awx.git
synced 2026-02-28 08:18:43 -03:30
Merge pull request #10190 from jbradberry/fix-precommit-for-macs
Remove the shebang line from pre-commit.sh
SUMMARY
since bash isn't available by default on OS X.
ISSUE TYPE
Bugfix Pull Request
COMPONENT NAME
API
AWX VERSION
ADDITIONAL INFORMATION
Reviewed-by: Kersom <None>
Reviewed-by: Rebeccah Hunter <rhunter@redhat.com>
This commit is contained in:
@@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/bash
|
|
||||||
|
|
||||||
if [ -z $AWX_IGNORE_BLACK ]
|
if [ -z $AWX_IGNORE_BLACK ]
|
||||||
then
|
then
|
||||||
black --check $(git diff --cached --name-only --diff-filter=AM | grep -E '\.py') || \
|
black --check $(git diff --cached --name-only --diff-filter=AM | grep -E '\.py') || \
|
||||||
|
|||||||
Reference in New Issue
Block a user