this allows a non-existant config/config.php for starting the autotest.sh

This commit is contained in:
Morris Jobke 2014-11-13 11:58:09 +01:00
parent a069171cda
commit 19346f4a27
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ if ! [ $PHPUNIT_MAJOR_VERSION -gt 3 -o \( $PHPUNIT_MAJOR_VERSION -eq 3 -a $PHPUN
exit 4
fi
if ! [ -w config -a -w config/config.php ]; then
if ! [ \( -w config -a ! -f config/config.php \) -o \( -f config/config.php -a -w config/config.php \) ]; then
echo "Please enable write permissions on config and config/config.php" >&2
exit 1
fi