From 71826884a6d398a78efcb7f776883a315d1632c5 Mon Sep 17 00:00:00 2001 From: "Mark A. Hershberger" Date: Sun, 19 Dec 2010 05:08:21 +0000 Subject: [PATCH] update install-phpunit.sh so people who read [[Unit_Testing#Installing_PHPUnit|about installing it]] can actually use it. --- tests/phpunit/install-phpunit.sh | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.20.1