File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 2626/\/\*\* Include for ddev-browsersync to modify WP_HOME and WP_SITEURL\./ { skip=1 }
2727skip && /\}.*$/ { skip=0; getline; next }
2828!skip
29- ' ${DDEV_SITE_PATH} /wp-config.php > ${DDEV_SITE_PATH} /wp-config-temp.php
30- mv ${DDEV_SITE_PATH} /wp-config-temp.php ${DDEV_SITE_PATH} /wp-config.php
29+ ' " ${DDEV_SITE_PATH} /wp-config.php" > " ${DDEV_SITE_PATH} /wp-config-temp.php"
30+ mv " ${DDEV_SITE_PATH} /wp-config-temp.php" " ${DDEV_SITE_PATH} /wp-config.php"
Original file line number Diff line number Diff line change 1717 DDEV_SITE_PATH=$DDEV_APPROOT
1818fi
1919
20- cp scripts/wp-config-ddev-browsersync.php $DDEV_SITE_PATH /
20+ cp scripts/wp-config-ddev-browsersync.php " $DDEV_SITE_PATH /"
2121
2222SETTINGS_FILE_NAME=" ${DDEV_SITE_PATH} /wp-config.php"
2323
2424echo " Settings file name: ${SETTINGS_FILE_NAME} "
2525
2626# If wp-config.php already contains the require_once() then exit early.
27- if grep -q " /\*\* Include for ddev-browsersync to modify WP_HOME and WP_SITEURL. \*/" ${DDEV_SITE_PATH} /wp-config.php; then
27+ if grep -q " /\*\* Include for ddev-browsersync to modify WP_HOME and WP_SITEURL. \*/" " ${DDEV_SITE_PATH} /wp-config.php" ; then
2828 exit 0
2929fi
3030
4343 next
4444}
4545{print}
46- ' ${DDEV_SITE_PATH} /wp-config.php > ${DDEV_SITE_PATH} /wp-config-temp.php
46+ ' " ${DDEV_SITE_PATH} /wp-config.php" > " ${DDEV_SITE_PATH} /wp-config-temp.php"
4747
4848# Replace the real config file with the modified version in temporary file.
49- mv ${DDEV_SITE_PATH} /wp-config-temp.php ${DDEV_SITE_PATH} /wp-config.php
49+ mv " ${DDEV_SITE_PATH} /wp-config-temp.php" " ${DDEV_SITE_PATH} /wp-config.php"
You can’t perform that action at this time.
0 commit comments