refactor: drop extra sub-shell
This commit is contained in:
committed by
Michael Hobbs
parent
dc00542b6f
commit
9ef7c385d4
@@ -229,8 +229,7 @@ nginx_build_config() {
|
|||||||
|
|
||||||
if [[ -z "$DOKKU_DISABLE_PROXY" ]]; then
|
if [[ -z "$DOKKU_DISABLE_PROXY" ]]; then
|
||||||
if [[ -z "$DOKKU_APP_LISTEN_PORT" ]] && [[ -z "$DOKKU_APP_LISTEN_IP" ]]; then
|
if [[ -z "$DOKKU_APP_LISTEN_PORT" ]] && [[ -z "$DOKKU_APP_LISTEN_IP" ]]; then
|
||||||
DOKKU_APP_LISTENERS="$(plugn trigger network-get-listeners "$APP")"
|
DOKKU_APP_LISTENERS="$(plugn trigger network-get-listeners "$APP" | xargs)"
|
||||||
DOKKU_APP_LISTENERS="$(echo "$DOKKU_APP_LISTENERS" | xargs)"
|
|
||||||
elif [[ -n "$DOKKU_APP_LISTEN_PORT" ]] && [[ -n "$DOKKU_APP_LISTEN_IP" ]]; then
|
elif [[ -n "$DOKKU_APP_LISTEN_PORT" ]] && [[ -n "$DOKKU_APP_LISTEN_IP" ]]; then
|
||||||
local PASSED_LISTEN_IP_PORT=true
|
local PASSED_LISTEN_IP_PORT=true
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user