From a90090bacdfb58df6bb1c13fd214cca69d7188da Mon Sep 17 00:00:00 2001 From: Rocky Madden Date: Fri, 22 May 2015 16:58:26 -0600 Subject: [PATCH 1/2] Handle for installs in /usr/local/bin and the like. --- contrib/dokku_client.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/dokku_client.sh b/contrib/dokku_client.sh index 9b7dce327..0afdd398d 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 From 7a6450f0f0a779c9c4b432d8c138796564d16379 Mon Sep 17 00:00:00 2001 From: Rocky Madden Date: Fri, 22 May 2015 17:07:54 -0600 Subject: [PATCH 2/2] Fixed lint issue. --- contrib/dokku_client.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/dokku_client.sh b/contrib/dokku_client.sh index 0afdd398d..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 ]] || [[ "$0" == `which dokku` ]]; then + if [[ "$0" == "dokku" ]] || [[ "$0" == *dokku_client.sh ]] || [[ "$0" == $(which dokku) ]]; then _dokku "$@" exit $? fi