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.
This commit is contained in:
1 parent
3bf68616ad
commit
587de65441
1 file changed
+5
@@ -102,6 +102,11 @@ if [[ ! -z $DOKKU_HOST ]]; then
|
|||||||
if [[ ! "$1" =~ --* ]]; then
|
if [[ ! "$1" =~ --* ]]; then
|
||||||
verb=$1
|
verb=$1
|
||||||
shift
|
shift
|
||||||
|
|
||||||
|
if [[ "$1" == "$appname" ]]; then
|
||||||
|
shift
|
||||||
|
fi
|
||||||
|
|
||||||
args="$*"
|
args="$*"
|
||||||
else
|
else
|
||||||
long_args="--"
|
long_args="--"
|
||||||
|
|||||||
Reference in new issue
Block a user