Make sure we shift by 1 to remove the app_name from the $@ var

This commit is contained in:
Jeroen van Baarsen
2016-05-10 21:31:53 +02:00
parent 4f621916a7
commit 86ef6ae5d1

View File

@@ -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"