From: Emilie Date: Wed, 28 Mar 2018 14:15:35 +0000 (+0200) Subject: [prod] : correcting bash syntax X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=ffa971f3bd2d4823b685207a31050c0a8ad5d3d7;p=docker-django-scripts.git [prod] : correcting bash syntax --- diff --git a/prod/up.sh b/prod/up.sh index 07fa2c4..5da0087 100755 --- a/prod/up.sh +++ b/prod/up.sh @@ -1,6 +1,9 @@ #!/bin/sh -options = "" -if [ "$1" = "-bg" ]; then - options = $options "-d"; + +options="" + +if [ "$1" = "-d" ]; then + options=$options"-d"; fi + docker-compose -f docker-compose.yml -f env/prod.yml up $options \ No newline at end of file