From 86ef6ae5d10829ea0e8c026c81fe8d0fcbc1e665 Mon Sep 17 00:00:00 2001 From: Jeroen van Baarsen Date: Tue, 10 May 2016 21:31:53 +0200 Subject: [PATCH] Make sure we shift by 1 to remove the app_name from the $@ var --- plugins/domains/functions | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/domains/functions b/plugins/domains/functions index 5544ccc08..821d04b71 100755 --- a/plugins/domains/functions +++ b/plugins/domains/functions @@ -66,6 +66,8 @@ domains_add() { verify_app_name "$1" local APP="$1"; local APP_VHOST_PATH="$DOKKU_ROOT/$APP/VHOST" + shift 1 + for DOMAIN in "$@"; do if [[ $(egrep -w "^$DOMAIN$" "$APP_VHOST_PATH" > /dev/null 2>&1; echo $?) -eq 0 ]]; then dokku_log_info1 "Skipping: $DOMAIN already added to $APP"