fix: output remote client help when there is no remote host
Closes #4793
This commit is contained in:
@@ -55,7 +55,7 @@ fn-dokku-host() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z "$DOKKU_HOST" ]]; then
|
if [[ -z "$DOKKU_HOST" ]]; then
|
||||||
fn-client-help-msg
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "$DOKKU_HOST"
|
echo "$DOKKU_HOST"
|
||||||
@@ -100,6 +100,9 @@ main() {
|
|||||||
done
|
done
|
||||||
|
|
||||||
DOKKU_REMOTE_HOST="$(fn-dokku-host "$DOKKU_GIT_REMOTE" "$DOKKU_HOST")"
|
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 [[ -z "$APP" ]]; then
|
||||||
if [[ -d .git ]] || git rev-parse --git-dir >/dev/null 2>&1; then
|
if [[ -d .git ]] || git rev-parse --git-dir >/dev/null 2>&1; then
|
||||||
|
|||||||
Reference in New Issue
Block a user