Handle for installs in /usr/local/bin and the like.

This commit is contained in:
Rocky Madden
2015-05-22 16:58:26 -06:00
parent 3bf68616ad
commit a90090bacd

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