Skip to content

Commit

Permalink
Whitespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickcarlohickman committed Jan 23, 2023
1 parent 07366aa commit 79d8dbc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions setup/resources/apache/make-site.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ sed -i "s#${STUB_PHP_VERSION_PLACEHOLDER}#${PHP_VERSION}#g" "${NEW_SITE_CONFIG}"
# Make sure the DocumentRoot directory of the new site actually exists.
if [[ "$(grep -m 1 "DocumentRoot" "${NEW_SITE_CONFIG}")" =~ DocumentRoot[[:blank:]]+(.+) ]]; then
readonly DOCUMENT_ROOT="${BASH_REMATCH[1]}"

if [[ ! -d "${DOCUMENT_ROOT}" ]]; then
log_error "Configured document root ${DOCUMENT_ROOT} does not exist."
log_error "Removing site config ${NEW_SITE_CONFIG}"

rm -f "${NEW_SITE_CONFIG}"

exit 1
fi
fi
Expand Down

0 comments on commit 79d8dbc

Please sign in to comment.