From 976dc3009c809d5f0b0e431d4df88ca1365cb5d7 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Thu, 11 Dec 2014 01:36:13 -0500 Subject: [PATCH] Use a normal conditional --- plugins/domains/commands | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/domains/commands b/plugins/domains/commands index 74ed91705..828c167c6 100755 --- a/plugins/domains/commands +++ b/plugins/domains/commands @@ -17,7 +17,7 @@ case "$1" in [[ ! -d "$DOKKU_ROOT/$2" ]] && echo "App $2 does not exist" && exit 1 APP="$2"; VHOST_PATH="$DOKKU_ROOT/$APP/VHOST" - [ -f $VHOST_PATH ] || { + if [[ ! -f $VHOST_PATH ]]; then echo "-----> Creating new $VHOST_PATH..." if [[ -f "$DOKKU_ROOT/$APP/URL" ]]; then cat "$DOKKU_ROOT/$APP/URL" > $VHOST_PATH @@ -35,7 +35,7 @@ case "$1" in echo $hostname > $VHOST_PATH fi - } + fi ;; domains:add)