mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
Relax #! format check
This commit is contained in:
parent
db62a6d95c
commit
c8142ca539
|
|
@ -15,7 +15,7 @@ check_bash_script() {
|
|||
|| err "Run 'chmod +x bin/$cmd' to make it executable"
|
||||
|
||||
shebang=$(head -n1 "bin/$cmd")
|
||||
test "$shebang" == "#!/usr/bin/env bash" \
|
||||
[[ "$shebang" =~ \#![[:space:]]*/usr/bin/env[[:space:]]+bash ]] \
|
||||
|| err "Start git-$1 with '#!/usr/bin/env bash'"
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue