File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ removal_actions:
46
46
- |
47
47
#ddev-nodisplay
48
48
#ddev-description:Remove browsersync settings for WordPress if applicable
49
- if [ $DDEV_DOCROOT != "" ]; then
49
+ if [ " $DDEV_DOCROOT" != "" ]; then
50
50
DDEV_SITE_PATH="${DDEV_APPROOT}/${DDEV_DOCROOT}" ;
51
51
else
52
52
DDEV_SITE_PATH=$DDEV_APPROOT
@@ -55,7 +55,7 @@ removal_actions:
55
55
scripts/remove-wordpress-settings.sh
56
56
# Don't automatically renable settings management in case user didn't have it enabled in the first place
57
57
- |
58
- if [[ $DDEV_PROJECT_TYPE = ' wordpress' ] ]; then
58
+ if [ " $DDEV_PROJECT_TYPE" = " wordpress" ]; then
59
59
echo "Note: You may wish to renable ddev's management of the wp-config file:"
60
60
echo " Run 'ddev config --disable-settings-management=false && ddev restart'"
61
61
fi
Original file line number Diff line number Diff line change 2
2
# ddev-generated
3
3
set -e
4
4
5
- if [[ $DDEV_PROJECT_TYPE != wordpress ]] ;
5
+ if [[ " $DDEV_PROJECT_TYPE " != " wordpress" ]] ;
6
6
then
7
7
exit 0
8
8
fi
11
11
# exit 0
12
12
# fi
13
13
14
- if [ $DDEV_DOCROOT != " " ]; then
14
+ if [ " $DDEV_DOCROOT " != " " ]; then
15
15
DDEV_SITE_PATH=" ${DDEV_APPROOT} /${DDEV_DOCROOT} " ;
16
16
else
17
17
DDEV_SITE_PATH=$DDEV_APPROOT
Original file line number Diff line number Diff line change 2
2
# ddev-generated
3
3
set -e
4
4
5
- if [[ $DDEV_PROJECT_TYPE != wordpress ]] ;
5
+ if [[ " $DDEV_PROJECT_TYPE " != " wordpress" ]] ;
6
6
then
7
7
exit 0
8
8
fi
11
11
# exit 0
12
12
# fi
13
13
14
- if [ $DDEV_DOCROOT != " " ]; then
14
+ if [ " $DDEV_DOCROOT " != " " ]; then
15
15
DDEV_SITE_PATH=" ${DDEV_APPROOT} /${DDEV_DOCROOT} " ;
16
16
else
17
17
DDEV_SITE_PATH=$DDEV_APPROOT
@@ -29,7 +29,7 @@ if grep -q "/\*\* Include for ddev-browsersync to modify WP_HOME and WP_SITEURL.
29
29
fi
30
30
31
31
echo " Adding wp-config-ddev-browsersync.php to: ${SETTINGS_FILE_NAME} "
32
-
32
+
33
33
# Append our code before the ddev config comment.
34
34
awk '
35
35
/\/\/ Include for settings managed by ddev./ {
You can’t perform that action at this time.
0 commit comments