From e310b302e44804403d37884856d330c8a70dfda7 Mon Sep 17 00:00:00 2001 From: southerntofu Date: Tue, 29 Sep 2020 12:37:12 +0200 Subject: [PATCH] Fix php working dir --- server | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server b/server index 4d4194c..e423580 100755 --- a/server +++ b/server @@ -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