Change echo to printf in applications-setup (#485)

Co-authored-by: nnyyxxxx <nnyyxxxx@users.noreply.github.com>
Co-authored-by: Chris Titus <contact@christitus.com>
This commit is contained in:
Nyx 2024-09-18 20:35:00 -04:00 committed by GitHub
parent a32f566325
commit f4eddd551d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -271,7 +271,7 @@ install_slstatus() {
read -r response # -r flag to prevent backslashes from being interpreted read -r response # -r flag to prevent backslashes from being interpreted
if [ "$response" = "y" ] || [ "$response" = "Y" ]; then if [ "$response" = "y" ] || [ "$response" = "Y" ]; then
printf "%b\n" "${YELLOW}Installing slstatus${RC}" 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 if "$ESCALATION_TOOL" make clean install; then
printf "%b\n" "${GREEN}slstatus installed successfully${RC}" printf "%b\n" "${GREEN}slstatus installed successfully${RC}"
else else

View File

@ -21,7 +21,7 @@ installZsh() {
# Function to setup zsh configuration # Function to setup zsh configuration
setupZshConfig() { setupZshConfig() {
echo "Setting up Zsh configuration..." printf "%b\n" "${YELLOW}Setting up Zsh configuration...${RC}"
CONFIG_DIR="$HOME/.config/zsh" CONFIG_DIR="$HOME/.config/zsh"
ZSHRC_FILE="$CONFIG_DIR/.zshrc" ZSHRC_FILE="$CONFIG_DIR/.zshrc"