File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 3
3
# Initialize Git
4
4
printf " ${BLUE} Initializing Git...${RESET} \n"
5
5
if [ -d ' .git' ]; then
6
- printf " ${YELLOW } Git is already initialized for this project. Skipping initialization.${RESET} \n"
6
+ printf " ${BLACK } Git is already initialized for this project. Skipping initialization.${RESET} \n"
7
7
else
8
8
git init
9
9
# Print success message
13
13
# Add .gitignore file to project
14
14
printf " ${BLUE} Creating .gitignore file...${RESET} \n"
15
15
if [ -f " .gitignore" ]; then
16
- printf " ${YELLOW } The .gitignore file already exists. Skipping creation.${RESET} \n"
16
+ printf " ${BLACK } The .gitignore file already exists. Skipping creation.${RESET} \n"
17
17
else
18
18
# Copy/Paste file
19
19
cp ${FILES_DIR} /.gitignore ./
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ printf "${BLUE}Creating php-ray.ini file...${RESET}\n"
6
6
ray_ini=" .ddev/php/php-ray.ini"
7
7
8
8
if [ -f " $ray_ini " ]; then
9
- printf " ${YELLOW } The ${ray_ini} file already exists. Skipping creation.${RESET} \n"
9
+ printf " ${BLACK } The ${ray_ini} file already exists. Skipping creation.${RESET} \n"
10
10
else
11
11
# Create the directories if they don't exist.
12
12
mkdir -p " $( dirname " $ray_ini " ) "
@@ -22,7 +22,7 @@ printf "${BLUE}Creating Dockerfile file for Global Ray...${RESET}\n"
22
22
ray_dockerfile=" .ddev/web-build/Dockerfile"
23
23
24
24
if [ -f " $ray_dockerfile " ]; then
25
- printf " ${YELLOW } The ${ray_dockerfile} file already exists. Skipping creation.${RESET} \n"
25
+ printf " ${BLACK } The ${ray_dockerfile} file already exists. Skipping creation.${RESET} \n"
26
26
else
27
27
# Create the directories if they don't exist
28
28
mkdir -p " $( dirname " $ray_dockerfile " ) "
37
37
printf " ${BLUE} Creating ray.php file...${RESET} \n"
38
38
39
39
if [ -f " ray.php" ]; then
40
- printf " ${YELLOW } The ray.php file already exists. Skipping creation.${RESET} \n"
40
+ printf " ${BLACK } The ray.php file already exists. Skipping creation.${RESET} \n"
41
41
else
42
42
# Copy/Paste file
43
43
cp ${FILES_DIR} /ray.php ./
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ printf "${BLUE}Creating .vscode/settings.json file...${RESET}\n"
6
6
vscode_settings=" .vscode/settings.json"
7
7
8
8
if [ -f " $vscode_settings " ]; then
9
- printf " ${YELLOW } The ${vscode_settings} file already exists. Skipping creation.${RESET} \n"
9
+ printf " ${BLACK } The ${vscode_settings} file already exists. Skipping creation.${RESET} \n"
10
10
else
11
11
# Create the directories if they don't exist
12
12
mkdir -p " $( dirname " $vscode_settings " ) "
Original file line number Diff line number Diff line change 25
25
26
26
# Check if the unique exec command exists in the config file
27
27
if grep -q " $WP_DEBUG_SETTING " " $CONFIG_FILE " ; then
28
- printf " ${YELLOW } The WP Debug post-start hooks already exist in $CONFIG_FILE . Skipping creation.${RESET} \n"
28
+ printf " ${BLACK } The WP Debug post-start hooks already exist in $CONFIG_FILE . Skipping creation.${RESET} \n"
29
29
# Check if the hooks section exists
30
30
elif grep -q " ^hooks:" " $CONFIG_FILE " ; then
31
31
# Add post-start hooks under the existing hooks section
@@ -49,7 +49,7 @@ LOG_DIR="$(dirname "$LOG_DIR_VALUE")"
49
49
if [ -n " $LOG_DIR " ]; then
50
50
printf " ${BLUE} Creating $LOG_DIR directory...${RESET} \n"
51
51
if [ -d " $LOG_DIR " ]; then
52
- printf " ${YELLOW } The '$LOG_DIR ' directory already exists. Skipping creation.${RESET} \n"
52
+ printf " ${BLACK } The '$LOG_DIR ' directory already exists. Skipping creation.${RESET} \n"
53
53
else
54
54
mkdir -p " $LOG_DIR "
55
55
# Print success message
You can’t perform that action at this time.
0 commit comments