From 587de65441afc8e00dc193057fa532743316874c Mon Sep 17 00:00:00 2001 From: Rocky Madden Date: Fri, 22 May 2015 18:21:54 -0600 Subject: [PATCH] When parsing args when handling verbs, appname can be included as an argument causing bugs with commands that accept a verb, appname, and also arguments. --- contrib/dokku_client.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/contrib/dokku_client.sh b/contrib/dokku_client.sh index 9b7dce327..9623b951e 100755 --- a/contrib/dokku_client.sh +++ b/contrib/dokku_client.sh @@ -102,6 +102,11 @@ if [[ ! -z $DOKKU_HOST ]]; then if [[ ! "$1" =~ --* ]]; then verb=$1 shift + + if [[ "$1" == "$appname" ]]; then + shift + fi + args="$*" else long_args="--"