From 396ba7b1aba8b6c4142bb23dcd20b7abae78c42f Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sat, 9 Oct 2021 16:16:36 -0400 Subject: [PATCH] fix: output remote client help when there is no remote host Closes #4793 --- contrib/dokku_client.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/contrib/dokku_client.sh b/contrib/dokku_client.sh index 8b4aacc6f..dbc13a20c 100755 --- a/contrib/dokku_client.sh +++ b/contrib/dokku_client.sh @@ -55,7 +55,7 @@ fn-dokku-host() { fi if [[ -z "$DOKKU_HOST" ]]; then - fn-client-help-msg + return fi echo "$DOKKU_HOST" @@ -100,6 +100,9 @@ main() { done DOKKU_REMOTE_HOST="$(fn-dokku-host "$DOKKU_GIT_REMOTE" "$DOKKU_HOST")" + if [[ -z "$DOKKU_REMOTE_HOST" ]]; then + fn-client-help-msg + fi if [[ -z "$APP" ]]; then if [[ -d .git ]] || git rev-parse --git-dir >/dev/null 2>&1; then