15 lines
305 B
Bash
Executable File
15 lines
305 B
Bash
Executable File
#! /bin/bash
|
|
# This script should be used by the test suite, don't useit manually
|
|
|
|
if [ -z "$FORGEHOOKPORT" ]; then
|
|
[ -z "$1" ] && exit 1
|
|
FORGEHOOKPORT="$1"
|
|
fi
|
|
[ -z "$FORGEHOOK" ] && FORGEHOOK="forgehook"
|
|
|
|
cd "$(dirname "$0")"
|
|
php -S localhost:$FORGEHOOKPORT
|
|
if [[ $? != 0 ]]; then
|
|
exit 2
|
|
fi
|