color fix.

This commit is contained in:
clsty
2023-12-30 11:18:12 +08:00
parent 2036fa3896
commit 1c96a7a911
+4 -4
View File
@@ -15,10 +15,10 @@ function v() {
echo " yesforall = yes and don't ask again; NOT recommended unless you really sure" echo " yesforall = yes and don't ask again; NOT recommended unless you really sure"
read -p "Enter here [y/a/s/yesforall]:" p read -p "Enter here [y/a/s/yesforall]:" p
case $p in case $p in
[yY]) echo -e "\e[32mOK, executing...\e[0m" ;break ;; [yY]) echo -e "\e[34mOK, executing...\e[0m" ;break ;;
[aA]) echo -e "\e[32mAborting...\e[0m" ;exit ;break ;; [aA]) echo -e "\e[34mAborting...\e[0m" ;exit ;break ;;
[sS]) echo -e "\e[32mAlright, skipping this one...\e[0m" ;export execute=false ;break ;; [sS]) echo -e "\e[34mAlright, skipping this one...\e[0m" ;export execute=false ;break ;;
"yesforall") echo -e "\e[32mAlright, won't ask again. Executing...\e[0m"; export ask=false ;break ;; "yesforall") echo -e "\e[34mAlright, won't ask again. Executing...\e[0m"; export ask=false ;break ;;
*) echo -e "\e[31mPlease enter one of [y/a/s/yesforall].\e[0m";; *) echo -e "\e[31mPlease enter one of [y/a/s/yesforall].\e[0m";;
esac esac
done done