fix: Remove unnecessary nesting
This commit is contained in:
1 parent
c49f81cd8b
commit
deace7a03a
1 file changed
+6
-4
@@ -12,11 +12,13 @@ get_nginx_location() {
|
|||||||
|
|
||||||
if [[ -z "$NGINX_LOCATION" ]]; then
|
if [[ -z "$NGINX_LOCATION" ]]; then
|
||||||
NGINX_LOCATION="/usr/sbin/nginx"
|
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
|
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"
|
echo "$NGINX_LOCATION"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user