1
0
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:
Chris Smith 2010-04-03 02:12:21 +01:00
parent 5568b2134b
commit b6920b7ca8

View File

@ -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