From f4eddd551d43ea2134b9ea19cdf39ea1a7f2695c Mon Sep 17 00:00:00 2001 From: Nyx <144965845+nnyyxxxx@users.noreply.github.com> Date: Wed, 18 Sep 2024 20:35:00 -0400 Subject: [PATCH] Change echo to printf in applications-setup (#485) Co-authored-by: nnyyxxxx Co-authored-by: Chris Titus --- tabs/applications-setup/dwmtitus-setup.sh | 2 +- tabs/applications-setup/zsh-setup.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tabs/applications-setup/dwmtitus-setup.sh b/tabs/applications-setup/dwmtitus-setup.sh index 98d759fb6..598a0c63e 100755 --- a/tabs/applications-setup/dwmtitus-setup.sh +++ b/tabs/applications-setup/dwmtitus-setup.sh @@ -271,7 +271,7 @@ install_slstatus() { read -r response # -r flag to prevent backslashes from being interpreted if [ "$response" = "y" ] || [ "$response" = "Y" ]; then printf "%b\n" "${YELLOW}Installing slstatus${RC}" - cd "$HOME/dwm-titus/slstatus" || { echo "Failed to change directory to slstatus"; return 1; } + cd "$HOME/dwm-titus/slstatus" || { printf "%b\n" "${RED}Failed to change directory to slstatus${RC}"; return 1; } if "$ESCALATION_TOOL" make clean install; then printf "%b\n" "${GREEN}slstatus installed successfully${RC}" else diff --git a/tabs/applications-setup/zsh-setup.sh b/tabs/applications-setup/zsh-setup.sh index 7100d01ba..c3577e5e8 100644 --- a/tabs/applications-setup/zsh-setup.sh +++ b/tabs/applications-setup/zsh-setup.sh @@ -21,7 +21,7 @@ installZsh() { # Function to setup zsh configuration setupZshConfig() { - echo "Setting up Zsh configuration..." + printf "%b\n" "${YELLOW}Setting up Zsh configuration...${RC}" CONFIG_DIR="$HOME/.config/zsh" ZSHRC_FILE="$CONFIG_DIR/.zshrc"