From deace7a03abe168960bf4c43a80b92ff7881de19 Mon Sep 17 00:00:00 2001 From: Manuel Colmenero Date: Tue, 19 Sep 2017 08:26:55 +0200 Subject: [PATCH] fix: Remove unnecessary nesting --- plugins/nginx-vhosts/functions | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/plugins/nginx-vhosts/functions b/plugins/nginx-vhosts/functions index dc4195df2..263e7d663 100755 --- a/plugins/nginx-vhosts/functions +++ b/plugins/nginx-vhosts/functions @@ -12,11 +12,13 @@ get_nginx_location() { if [[ -z "$NGINX_LOCATION" ]]; then NGINX_LOCATION="/usr/sbin/nginx" - if ! [[ -x "$NGINX_LOCATION" ]]; then - dokku_log_fail "Could not find nginx binary in \$PATH or at '${NGINX_LOCATION}'." - exit 1; - fi fi + + if ! [[ -x "$NGINX_LOCATION" ]]; then + dokku_log_fail "Could not find nginx binary in \$PATH or at '${NGINX_LOCATION}'." + exit 1; + fi + echo "$NGINX_LOCATION" }