This commit is contained in:
Michael Hobbs
2015-02-07 11:49:35 -08:00
parent 959c51eb50
commit 66f7fa3192

View File

@@ -102,20 +102,21 @@ if [[ ! -z $DOKKU_HOST ]]; then
if [[ ! "$1" =~ --* ]]; then if [[ ! "$1" =~ --* ]]; then
verb=$1 verb=$1
shift shift
args="$@" args="$*"
else else
long_args="--" long_args="--"
for arg in "$@";do for arg in "$@";do
if [[ "$arg" =~ --* ]];then if [[ "$arg" =~ --* ]];then
long_args+=" $arg" long_args+=" $arg"
args=(${args[@]/$arg}) args=("${args[@]/$arg}")
else else
verb="$arg" verb="$arg"
fi fi
done done
fi fi
fi fi
ssh "dokku@$DOKKU_HOST" $long_args "$verb" "$appname" "$args" # shellcheck disable=SC2086
ssh "dokku@$DOKKU_HOST" $long_args "$verb" "$appname" "${args[@]}"
} }
if [[ "$0" == "dokku" ]] || [[ "$0" == *dokku_client.sh ]]; then if [[ "$0" == "dokku" ]] || [[ "$0" == *dokku_client.sh ]]; then