Skip to content

Commit af99aff

Browse files
committed
Replace custom yellow terminal messages with black
1 parent 7ca439a commit af99aff

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

modules/wp-starter-setup-module.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ if $INSTALL_DEFAULT_THEME; then
2525

2626
if ddev wp theme is-installed ${DEFAULT_THEME_SLUG} > /dev/null 2>&1; then
2727
DEFAULT_THEME_NAME=$(ddev wp theme get ${DEFAULT_THEME_SLUG} --field=name)
28-
printf "${YELLOW}${DEFAULT_THEME_NAME} is already installed. Skipping installation.${RESET}\n"
28+
printf "${BLACK}${DEFAULT_THEME_NAME} is already installed. Skipping installation.${RESET}\n"
2929
else
3030
ddev wp theme install $DEFAULT_THEME_SLUG
3131
fi
@@ -36,7 +36,7 @@ if $INSTALL_STARTER_THEME; then
3636
if ddev wp theme is-installed ${STARTER_THEME_SLUG} > /dev/null 2>&1; then
3737
CUSTOM_THEME_NAME=$(ddev wp theme get ${STARTER_THEME_SLUG} --field=name)
3838
printf "${BLUE}Installing ${CUSTOM_THEME_NAME}...${RESET}\n"
39-
printf "${YELLOW}${CUSTOM_THEME_NAME} is already installed. Skipping installation.${RESET}\n"
39+
printf "${BLACK}${CUSTOM_THEME_NAME} is already installed. Skipping installation.${RESET}\n"
4040
else
4141
printf "${BLUE}Creating ${STARTER_THEME_SLUG} directory...${RESET}\n"
4242
git clone git@github.com:jacobcassidy/cassidywp-starter-block-theme.git wp-content/themes/${STARTER_THEME_SLUG}
@@ -59,7 +59,7 @@ if $INSTALL_AIOM_PLUGIN; then
5959

6060
if ddev wp plugin is-installed ${PLUGIN_SLUG_AIOM} > /dev/null 2>&1; then
6161
PLUGIN_NAME_AIOM=$(ddev wp plugin get ${PLUGIN_SLUG_AIOM} --field=title)
62-
printf "${YELLOW}${PLUGIN_NAME_AIOM} is already installed. Skipping installation.${RESET}\n"
62+
printf "${BLACK}${PLUGIN_NAME_AIOM} is already installed. Skipping installation.${RESET}\n"
6363
else
6464
ddev wp plugin install $PLUGIN_SLUG_AIOM --activate
6565
fi
@@ -72,7 +72,7 @@ if $INSTALL_LOCAL_AIOMUE_PLUGIN; then
7272

7373
if ddev wp plugin is-installed ${PLUGIN_SLUG_AIOMUE} > /dev/null 2>&1; then
7474
PLUGIN_NAME_AIOMUE=$(ddev wp plugin get ${PLUGIN_SLUG_AIOMUE} --field=title)
75-
printf "${YELLOW}${PLUGIN_NAME_AIOMUE} is already installed. Skipping installation.${RESET}\n"
75+
printf "${BLACK}${PLUGIN_NAME_AIOMUE} is already installed. Skipping installation.${RESET}\n"
7676
else
7777
unzip "$LOCAL_AIOMUE_PATH" -x "__MACOSX/*" -d ./wp-content/plugins
7878
printf "${BLUE}Activating All-In-One Migration Unlimited Extension plugin...${RESET}\n"
@@ -87,7 +87,7 @@ if $INSTALL_QUERY_MONITOR_PLUGIN; then
8787

8888
if ddev wp plugin is-installed ${PLUGIN_SLUG_QM} > /dev/null 2>&1; then
8989
PLUGIN_NAME_QM=$(ddev wp plugin get ${PLUGIN_SLUG_QM} --field=title)
90-
printf "${YELLOW}${PLUGIN_NAME_QM} is already installed. Skipping installation.${RESET}\n"
90+
printf "${BLACK}${PLUGIN_NAME_QM} is already installed. Skipping installation.${RESET}\n"
9191
else
9292
ddev wp plugin install $PLUGIN_SLUG_QM --activate
9393
fi
@@ -97,7 +97,7 @@ fi
9797
printf "${BLUE}Setting WP permalinks to use '%%postname%%'...${RESET}\n"
9898

9999
if [[ $(ddev wp option get permalink_structure) == '/%postname%' ]]; then
100-
printf "${YELLOW}The permalink structure is already using '%%postname%%'. Skipping restructure.${RESET}\n"
100+
printf "${BLACK}The permalink structure is already using '%%postname%%'. Skipping restructure.${RESET}\n"
101101
else
102102
ddev wp rewrite structure '/%postname%'
103103
fi
@@ -127,30 +127,30 @@ printf "${BLUE}Deleting WordPress' default 'Hello, World' post...${RESET}\n"
127127
if ddev wp post exists 1 > /dev/null 2>&1; then
128128
ddev wp post delete 1 --force
129129
else
130-
printf "${YELLOW}Post with ID 1 does not exist. Skipping deletion.${RESET}\n"
130+
printf "${BLACK}Post with ID 1 does not exist. Skipping deletion.${RESET}\n"
131131
fi
132132

133133
# Delete Sample Page
134134
printf "${BLUE}Deleting WordPress' default 'Sample Page'...${RESET}\n"
135135
if ddev wp post exists 2 > /dev/null 2>&1; then
136136
ddev wp post delete 2 --force
137137
else
138-
printf "${YELLOW}Post with ID 2 does not exist. Skipping deletion.${RESET}\n"
138+
printf "${BLACK}Post with ID 2 does not exist. Skipping deletion.${RESET}\n"
139139
fi
140140

141141
# Delete Privacy Policy draft page
142142
printf "${BLUE}Deleting WordPress' default 'Privacy Policy'...${RESET}\n"
143143
if ddev wp post exists 3 > /dev/null 2>&1; then
144144
ddev wp post delete 3 --force
145145
else
146-
printf "${YELLOW}Post with ID 3 does not exist. Skipping deletion.${RESET}\n"
146+
printf "${BLACK}Post with ID 3 does not exist. Skipping deletion.${RESET}\n"
147147
fi
148148

149149
# Create a 'Homepage' page
150150
printf "${BLUE}Creating a new page titled 'Homepage' and setting it to be the site's front page...${RESET}\n"
151151

152152
if [[ $(ddev wp option get show_on_front) == 'page' ]]; then
153-
printf "${YELLOW}Homepage already exists. Skipping creation.${RESET}\n"
153+
printf "${BLACK}Homepage already exists. Skipping creation.${RESET}\n"
154154
else
155155
HOMEPAGE_ID=$(ddev wp post create --post_type=page --post_title='Homepage' --post_author=1 --post_status=publish --post_content='<!-- wp:paragraph --><p>This is the homepage.</p><!-- /wp:paragraph -->' --porcelain)
156156
ddev wp option update show_on_front 'page'

0 commit comments

Comments
 (0)