From: Mark A. Hershberger Date: Sun, 19 Dec 2010 05:08:21 +0000 (+0000) Subject: update install-phpunit.sh so people who read [[Unit_Testing#Installing_PHPUnit|about... X-Git-Tag: 1.31.0-rc.0~33231 X-Git-Url: http://git.cyclocoop.org/ecrire?a=commitdiff_plain;h=71826884a6d398a78efcb7f776883a315d1632c5;p=lhc%2Fweb%2Fwiklou.git update install-phpunit.sh so people who read [[Unit_Testing#Installing_PHPUnit|about installing it]] can actually use it. --- diff --git a/tests/phpunit/install-phpunit.sh b/tests/phpunit/install-phpunit.sh index aca7ace6e5..c0ebd9ef05 100755 --- a/tests/phpunit/install-phpunit.sh +++ b/tests/phpunit/install-phpunit.sh @@ -1,5 +1,12 @@ #!/bin/sh +has_binary () { + if [ -z `which $1` ]; then + return 1 + fi + return 0 +} + if [ `id -u` -ne 0 ]; then echo '*** ERROR' Must be root to run exit 1