Skip to content

Commit

Permalink
fix: strip trailing whitespace
Browse files Browse the repository at this point in the history
Closes #19
  • Loading branch information
josegonzalez committed Feb 24, 2018
1 parent 6238e0b commit 53c7d10
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nginx-pre-reload
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 53c7d10

Please sign in to comment.