Skip to content

Commit

Permalink
added env check
Browse files Browse the repository at this point in the history
  • Loading branch information
freedev committed Feb 15, 2017
1 parent 99d828c commit 26eac15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ SCRIPT_PATH=$(my_readlink $(dirname "$0"))
SCRIPT_NAME=$(basename "$0")
SCRIPT_DIR=$(dirname $SCRIPT_PATH)

command -v docker >/dev/null 2>&1 || { echo >&2 "I require docker but it's not installed. \n\n https://docs.docker.com/engine/installation/ \n\n "; exit 1; }
command -v docker-compose >/dev/null 2>&1 || { echo >&2 "I require docker-compose but it's not installed. \n\n https://docs.docker.com/compose/install/ \n\n "; exit 1; }
command -v docker >/dev/null 2>&1 || { echo -e >&2 "Error: docker it's not installed. \n\n https://docs.docker.com/engine/installation/ \n\n "; exit 1; }
command -v docker-compose >/dev/null 2>&1 || { echo -e >&2 "Error: docker-compose it's not installed. \n\n https://docs.docker.com/compose/install/ \n\n "; exit 1; }


if [ "$SCRIPT_PATH" == "$PWD" ]
Expand Down

0 comments on commit 26eac15

Please sign in to comment.