diff --git a/contrib/dokku_client.sh b/contrib/dokku_client.sh index 9b7dce327..a1368c3f7 100755 --- a/contrib/dokku_client.sh +++ b/contrib/dokku_client.sh @@ -119,7 +119,7 @@ if [[ ! -z $DOKKU_HOST ]]; then ssh -t "dokku@$DOKKU_HOST" $long_args "$verb" "$appname" "${args[@]}" } - if [[ "$0" == "dokku" ]] || [[ "$0" == *dokku_client.sh ]]; then + if [[ "$0" == "dokku" ]] || [[ "$0" == *dokku_client.sh ]] || [[ "$0" == $(which dokku) ]]; then _dokku "$@" exit $? fi