Skip to content
Snippets Groups Projects
Commit 6d8884e8 authored by Vincent Petry's avatar Vincent Petry
Browse files

Add check for "replace" command

parent eb0e9e56
No related branches found
No related tags found
No related merge requests found
...@@ -32,6 +32,11 @@ if ! [ -x "$PHPUNIT" ]; then ...@@ -32,6 +32,11 @@ if ! [ -x "$PHPUNIT" ]; then
exit 3 exit 3
fi fi
if ! which replace > /dev/null 2>&1; then
echo "The command 'replace' is not available on this system. Please install it first." >&2
exit 5
fi
PHPUNIT_VERSION=$("$PHPUNIT" --version | cut -d" " -f2) PHPUNIT_VERSION=$("$PHPUNIT" --version | cut -d" " -f2)
PHPUNIT_MAJOR_VERSION=$(echo $PHPUNIT_VERSION | cut -d"." -f1) PHPUNIT_MAJOR_VERSION=$(echo $PHPUNIT_VERSION | cut -d"." -f1)
PHPUNIT_MINOR_VERSION=$(echo $PHPUNIT_VERSION | cut -d"." -f2) PHPUNIT_MINOR_VERSION=$(echo $PHPUNIT_VERSION | cut -d"." -f2)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment