From 9272e4017872120b3cfec5ec745888be833c8473 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Mon, 9 Jan 2017 02:12:18 -0700 Subject: [PATCH] fix: skip following argument when current argument is --app --- dokku | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dokku b/dokku index 05ae39621..978d617f4 100755 --- a/dokku +++ b/dokku @@ -35,10 +35,12 @@ source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions" parse_args "$@" args=("$@") +skip_arg=false if [[ "${args[0]}" =~ ^--.* ]]; then for arg in "$@"; do + $skip_arg && skip_arg=false && continue if [[ "$arg" == "--app" ]]; then - shift 2 + shift 2 && skip_arg=true elif [[ "$arg" =~ ^--.* ]]; then shift 1 else