mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 15:05:43 +02:00
[git-tools] Use env to find the correct paths to binaries.
This commit is contained in:
parent
5568b2134b
commit
b6920b7ca8
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# A hook to disallow php syntax errors to be committed
|
||||
# by running php -l (lint) on them. It requires php-cli
|
||||
@ -53,7 +53,7 @@ do
|
||||
|
||||
# check the staged file content for syntax errors
|
||||
# using php -l (lint)
|
||||
result=$(git cat-file -p $sha | $PHP_BIN -l)
|
||||
result=$(git cat-file -p $sha | /usr/bin/env $PHP_BIN -l)
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
error=1
|
||||
|
Loading…
x
Reference in New Issue
Block a user