Fix php working dir

This commit is contained in:
southerntofu 2020-09-29 12:37:12 +02:00
parent bcd7365f76
commit e310b302e4
1 changed files with 1 additions and 1 deletions

2
server
View File

@ -1,6 +1,5 @@
#! /bin/bash
# This script should be used by the test suite, don't useit manually
# or you may end up with zombie processes lying around
if [ -z "$FORGEHOOKPORT" ]; then
[ -z "$1" ] && exit 1
@ -8,6 +7,7 @@ if [ -z "$FORGEHOOKPORT" ]; then
fi
[ -z "$FORGEHOOK" ] && FORGEHOOK="forgehook"
cd "$(dirname "$0")"
php -S localhost:$FORGEHOOKPORT
if [[ $? != 0 ]]; then
exit 2