Skip to content

Commit

Permalink
Replace custom yellow terminal messages with black
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobcassidy committed Nov 29, 2024
1 parent 21a33c8 commit 7ca439a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions modules/git-local-setup-module.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Initialize Git
printf "${BLUE}Initializing Git...${RESET}\n"
if [ -d '.git' ]; then
printf "${YELLOW}Git is already initialized for this project. Skipping initialization.${RESET}\n"
printf "${BLACK}Git is already initialized for this project. Skipping initialization.${RESET}\n"
else
git init
# Print success message
Expand All @@ -13,7 +13,7 @@ fi
# Add .gitignore file to project
printf "${BLUE}Creating .gitignore file...${RESET}\n"
if [ -f ".gitignore" ]; then
printf "${YELLOW}The .gitignore file already exists. Skipping creation.${RESET}\n"
printf "${BLACK}The .gitignore file already exists. Skipping creation.${RESET}\n"
else
# Copy/Paste file
cp ${FILES_DIR}/.gitignore ./
Expand Down
6 changes: 3 additions & 3 deletions modules/ray-app-connections-module.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ printf "${BLUE}Creating php-ray.ini file...${RESET}\n"
ray_ini=".ddev/php/php-ray.ini"

if [ -f "$ray_ini" ]; then
printf "${YELLOW}The ${ray_ini} file already exists. Skipping creation.${RESET}\n"
printf "${BLACK}The ${ray_ini} file already exists. Skipping creation.${RESET}\n"
else
# Create the directories if they don't exist.
mkdir -p "$(dirname "$ray_ini")"
Expand All @@ -22,7 +22,7 @@ printf "${BLUE}Creating Dockerfile file for Global Ray...${RESET}\n"
ray_dockerfile=".ddev/web-build/Dockerfile"

if [ -f "$ray_dockerfile" ]; then
printf "${YELLOW}The ${ray_dockerfile} file already exists. Skipping creation.${RESET}\n"
printf "${BLACK}The ${ray_dockerfile} file already exists. Skipping creation.${RESET}\n"
else
# Create the directories if they don't exist
mkdir -p "$(dirname "$ray_dockerfile")"
Expand All @@ -37,7 +37,7 @@ fi
printf "${BLUE}Creating ray.php file...${RESET}\n"

if [ -f "ray.php" ]; then
printf "${YELLOW}The ray.php file already exists. Skipping creation.${RESET}\n"
printf "${BLACK}The ray.php file already exists. Skipping creation.${RESET}\n"
else
# Copy/Paste file
cp ${FILES_DIR}/ray.php ./
Expand Down
2 changes: 1 addition & 1 deletion modules/vscode-workspace-settings-module.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ printf "${BLUE}Creating .vscode/settings.json file...${RESET}\n"
vscode_settings=".vscode/settings.json"

if [ -f "$vscode_settings" ]; then
printf "${YELLOW}The ${vscode_settings} file already exists. Skipping creation.${RESET}\n"
printf "${BLACK}The ${vscode_settings} file already exists. Skipping creation.${RESET}\n"
else
# Create the directories if they don't exist
mkdir -p "$(dirname "$vscode_settings")"
Expand Down
4 changes: 2 additions & 2 deletions modules/wp-debug-log-setup-module.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ hooks:

# Check if the unique exec command exists in the config file
if grep -q "$WP_DEBUG_SETTING" "$CONFIG_FILE"; then
printf "${YELLOW}The WP Debug post-start hooks already exist in $CONFIG_FILE. Skipping creation.${RESET}\n"
printf "${BLACK}The WP Debug post-start hooks already exist in $CONFIG_FILE. Skipping creation.${RESET}\n"
# Check if the hooks section exists
elif grep -q "^hooks:" "$CONFIG_FILE"; then
# Add post-start hooks under the existing hooks section
Expand All @@ -49,7 +49,7 @@ LOG_DIR="$(dirname "$LOG_DIR_VALUE")"
if [ -n "$LOG_DIR" ]; then
printf "${BLUE}Creating $LOG_DIR directory...${RESET}\n"
if [ -d "$LOG_DIR" ]; then
printf "${YELLOW}The '$LOG_DIR' directory already exists. Skipping creation.${RESET}\n"
printf "${BLACK}The '$LOG_DIR' directory already exists. Skipping creation.${RESET}\n"
else
mkdir -p "$LOG_DIR"
# Print success message
Expand Down

0 comments on commit 7ca439a

Please sign in to comment.