Browse Source
prevent input variable splitting on some ttys
pull/2/head
Tomek Kalinowski
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
4 deletions
-
tools/containers/docker/start.sh
|
|
@ -7,14 +7,14 @@ else |
|
|
|
docker run -v $(pwd):/pro pro:init |
|
|
|
fi |
|
|
|
|
|
|
|
if [ $1 == 'server' -o $1 == 's' ]; then |
|
|
|
if [ "$1" == 'server' -o "$1" == 's' ]; then |
|
|
|
docker-compose up |
|
|
|
elif [ $1 == 'build' ]; then |
|
|
|
elif [ "$1" == 'build' ]; then |
|
|
|
docker-compose down && docker-compose build |
|
|
|
elif [ $1 == 'console' -o $1 == 'c' ]; then |
|
|
|
elif [ "$1" == 'console' -o "$1" == 'c' ]; then |
|
|
|
docker exec -it `docker-compose ps -q consumer` bash -c "ruby framework/tools/starter/start.rb c" |
|
|
|
|
|
|
|
if [ $? -ne 0 ]; then |
|
|
|
if [ "$?" -ne 0 ]; then |
|
|
|
echo 'Is the server running?' |
|
|
|
fi |
|
|
|
fi |
|
|
|