Shorten client script

This commit is contained in:
Luke Murphy 2020-03-17 13:47:51 +01:00
parent 61dc00d86d
commit 03e18ff0f8
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -149,7 +149,7 @@ main() {
ssh -o LogLevel=QUIET -p $DOKKU_PORT -t dokku@$DOKKU_REMOTE_HOST -- $app_arg $@
}
if [[ "$0" == "dokku" ]] || [[ "$0" == *dokku_client.sh ]] || [[ "$0" == $(which dokku) ]]; then
if [[ "$0" == "dokku" ]] || [[ "$0" == *dokku.sh ]] || [[ "$0" == $(which dokku) ]]; then
main "$@"
exit $?
fi