From 53c7d10de113bb06b7193ea88045f5f730d84e08 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Fri, 23 Feb 2018 22:40:09 -0500 Subject: [PATCH] fix: strip trailing whitespace Closes #19 --- nginx-pre-reload | 1 + 1 file changed, 1 insertion(+) diff --git a/nginx-pre-reload b/nginx-pre-reload index 405c624..2ca70f5 100755 --- a/nginx-pre-reload +++ b/nginx-pre-reload @@ -24,6 +24,7 @@ redirect_nginx_pre_load_trigger() { local NGINX_CONF="$APP_ROOT/nginx.conf" local NGINX_TEMPLATE="$(dirname "$0")/templates/nginx.conf.sigil" local PROXY_PORT_MAP=$(config_get "$APP" DOKKU_PROXY_PORT_MAP || true) + PROXY_PORT_MAP="$(echo -e "${PROXY_PORT_MAP}" | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')" local NGINX_LOCATION=$(get_nginx_location) if [[ -z "$NGINX_LOCATION" ]]; then exit 1;