From 9ef7c385d4a959afcde8ef5b0120e1922a3b00a1 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 3 Sep 2017 03:22:17 -0400 Subject: [PATCH] refactor: drop extra sub-shell --- plugins/nginx-vhosts/functions | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/nginx-vhosts/functions b/plugins/nginx-vhosts/functions index da6af4c29..06c662be6 100755 --- a/plugins/nginx-vhosts/functions +++ b/plugins/nginx-vhosts/functions @@ -229,8 +229,7 @@ nginx_build_config() { if [[ -z "$DOKKU_DISABLE_PROXY" ]]; 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="$(echo "$DOKKU_APP_LISTENERS" | xargs)" + DOKKU_APP_LISTENERS="$(plugn trigger network-get-listeners "$APP" | xargs)" elif [[ -n "$DOKKU_APP_LISTEN_PORT" ]] && [[ -n "$DOKKU_APP_LISTEN_IP" ]]; then local PASSED_LISTEN_IP_PORT=true fi