From 57e4ea564d1f1ed2e64c943cc1a19a0a5d8f0d04 Mon Sep 17 00:00:00 2001 From: koksnuss Date: Tue, 29 May 2018 15:50:07 +0200 Subject: [PATCH] Fix colors --- install.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/install.sh b/install.sh index 1f64b31..28338d2 100644 --- a/install.sh +++ b/install.sh @@ -1,17 +1,17 @@ #!/bin/bash GRE='\033[0;32m' -RED='\033[0;31m' -NOR='\033[0m' +{RED}='\033[0;31m' +{NOR}='\033[0m' -echo "$GREEN" +echo "${GRE}" echo "::: Installing i3blocks" echo "::: Checking if i3 is installed" i3 -v &> /dev/null -[[ $? -ne 0 ]] && echo "$RED::: Please install i3 and restart this setup$NOR\n" && exit 1 +[[ $? -ne 0 ]] && echo "${RED}::: Please install i3 and restart this setup${NOR}\n" && exit 1 echo "::: Checking if i3blocks is installed" i3blocks -V &> /dev/null -[[ $? -ne 0 ]] && echo "$RED::: Please install i3blocks and restart this setup$NOR\n" && exit 1 +[[ $? -ne 0 ]] && echo "${RED}::: Please install i3blocks and restart this setup${NOR}\n" && exit 1 echo "::: Checking if the directory ~/.config/i3blocks already exists" [[ -d "$HOME/.config/i3blocks" ]] && echo "::: Moving ~/.config/i3blocks to ~/.config/i3blocks.bak" && mv "$HOME/.config/i3blocks"{,.bak} >/dev/null 2>/dev/null echo "::: Downloading simple-i3blocks to ~/.config/i3blocks" @@ -20,4 +20,4 @@ cd "$HOME/.config/i3blocks/modules" echo "::: Masking modules as execulatbles" chmod u+x audio backlight battery cpu datetime ip ram storage echo "::: Finished, please reload i3. Normally you can do this with the shortcut MOD+SHIFT+R" -echo "$NOR" +echo "${NOR}"