fix: colors
1 file changed, +5 -3
+5-3install.sh
| @@ -17,19 +17,21 @@ echo "Using $INSTALL for installations" | ||
| 17 | 17 | |
| 18 | 18 | # Pass in command to invoke and installation name |
| 19 | 19 | install() { |
| 20 | - echo -e "\[31m$1 is already installed. Skipping." | |
| 21 | 20 | 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" | |
| 23 | 22 | $INSTALL $2 |
| 23 | + else | |
| 24 | + echo -e "\e[32m$1 is already installed. Skipping.\e[0m" | |
| 24 | 25 | fi |
| 25 | 26 | } |
| 26 | 27 | |
| 27 | 28 | # Pass in command to invoke and installation command |
| 28 | 29 | custominstall() { |
| 29 | - echo -e "\[31m$1 is already installed. Skipping." | |
| 30 | 30 | if ! command -v "$1" &>/dev/null; then |
| 31 | 31 | echo -e "\e[33mInstalling $1 using $2\e[0m" |
| 32 | 32 | eval "$2" |
| 33 | + else | |
| 34 | + echo -e "\e[32m$1 is already installed. Skipping.\e[0m" | |
| 33 | 35 | fi |
| 34 | 36 | } |
| 35 | 37 |