irongit

fix: colors

huncholanehuncholaneauthored
parent 75d17bdcommit dda74d1f34fab440f1e7adbf796e3573dda2f613Browse files

1 file changed, +5 -3

+5-3install.sh
@@ -17,19 +17,21 @@ echo "Using $INSTALL for installations"
1717
1818 # Pass in command to invoke and installation name
1919 install() {
20- echo -e "\[31m$1 is already installed. Skipping."
2120 if ! command -v "$1" &>/dev/null; then
22- echo -e "\e[33mInstalling $1 using '$INSTALL $2\e[0m'."
21+ echo -e "\e[33mInstalling $1 using '$INSTALL $2'\e[0m"
2322 $INSTALL $2
23+ else
24+ echo -e "\e[32m$1 is already installed. Skipping.\e[0m"
2425 fi
2526 }
2627
2728 # Pass in command to invoke and installation command
2829 custominstall() {
29- echo -e "\[31m$1 is already installed. Skipping."
3030 if ! command -v "$1" &>/dev/null; then
3131 echo -e "\e[33mInstalling $1 using $2\e[0m"
3232 eval "$2"
33+ else
34+ echo -e "\e[32m$1 is already installed. Skipping.\e[0m"
3335 fi
3436 }
3537