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 26
26
/\/\*\* Include for ddev-browsersync to modify WP_HOME and WP_SITEURL\./ { skip=1 }
27
27
skip && /\}.*$/ { skip=0; getline; next }
28
28
!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 17
17
DDEV_SITE_PATH=$DDEV_APPROOT
18
18
fi
19
19
20
- cp scripts/wp-config-ddev-browsersync.php $DDEV_SITE_PATH /
20
+ cp scripts/wp-config-ddev-browsersync.php " $DDEV_SITE_PATH /"
21
21
22
22
SETTINGS_FILE_NAME=" ${DDEV_SITE_PATH} /wp-config.php"
23
23
24
24
echo " Settings file name: ${SETTINGS_FILE_NAME} "
25
25
26
26
# 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
28
28
exit 0
29
29
fi
30
30
43
43
next
44
44
}
45
45
{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"
47
47
48
48
# 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