15 lines
339 B
Bash
Executable File
15 lines
339 B
Bash
Executable File
#! /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
|
|
FORGEHOOKPORT="$1"
|
|
fi
|
|
[ -z "$FORGEHOOK" ] && FORGEHOOK="forgehook"
|
|
|
|
php -S localhost:$FORGEHOOKPORT
|
|
if [[ $? != 0 ]]; then
|
|
exit 2
|
|
fi
|