Merge pull request #1206 from rockymadden/patch-1

Handle for installs in /usr/local/bin and the like.
This commit is contained in:
Michael Hobbs
2015-06-02 10:45:41 -07:00

View File

@@ -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