Skip to content

Commit 0c92d83

Browse files
omardeleooutoftime
authored andcommitted
Fixes for setup tool (#1706)
1 parent 38823dc commit 0c92d83

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

tools/setup

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
# Build your development environment. Running this on an already-built
44
# environment will update to the latest dependencies.
55

6-
export OSX=$(expr $(uname | tr '[:upper:]' '[:lower:]') == "darwin*")
6+
set -e
7+
8+
export OSX=$(uname | grep -i '^darwin')
79

810
if ! docker-compose -v &> /dev/null
911
then
@@ -19,9 +21,15 @@ then
1921
exit 1
2022
fi
2123

24+
if ! docker info &> /dev/null
25+
then
26+
echo "Before running this script, start the Docker application"
27+
exit 1
28+
fi
29+
2230
if [ -z $OSX ]
2331
then
24-
set -ex
32+
set -x
2533
ln -si docker-compose.sync.yml docker-compose.override.yml
2634
else
2735
set -ex

0 commit comments

Comments
 (0)