wiki.techinc.nl/maintenance/dev/includes/require-php.sh
Southparkfan e930012075 Revert "Add executable rights for executable (bash) files"
These are not meant to be complete shell scripts, so
shebang lines don't really make sense here. Rather, as
noted by the author (Daniel Friesen), scripts in the
parent directory include these files using the "source"
or "." command.

This reverts commit 96e0ed45a8.

Change-Id: I7a0b7bb2a5ea1b1c141cb36f38736fe562b22c10
2015-08-07 07:28:19 +00:00

8 lines
204 B
Bash

# Include-able script to require that we have a known php binary we can execute
. "$DEV/includes/php.sh"
if [ "x$PHP" == "x" -o ! -x "$PHP" ]; then
echo "Local copy of PHP is not installed"
exit 1
fi