From 1e6709b68484f360fd33c86a088430ce74cbde95 Mon Sep 17 00:00:00 2001 From: clsty Date: Sat, 6 Jan 2024 19:26:45 +0800 Subject: [PATCH] Better informing --- install.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index e30508b65..e8ab62492 100755 --- a/install.sh +++ b/install.sh @@ -29,8 +29,8 @@ function v() { "$@" || cmdstatus=1 fi while [ $cmdstatus == 1 ] ;do - echo -e "\e[31m[$0]: Command \"\e[32m$@\e[31m\" has failed. You may need to resolve the problem manually before proceeding.\e[0m" - echo -e "\e[31mWhich one would you like to do? \e[0m" + echo -e "\e[31m[$0]: Command \"\e[32m$@\e[31m\" has failed." + echo -e "You may need to resolve the problem manually BEFORE repeating this command.\e[0m" echo " r = Repeat this command (DEFAULT)" echo " e = Exit now" echo " i = Ignore the error and continue this script anyway (may break functions needed by the dotfiles!)" @@ -57,6 +57,13 @@ function showfun() { printf "\e[97m" } ##################################################################################### +# For debugging +# ask=false +# mkdir -p /tmp/test1 +# v mkdir /tmp/test1 +# +# echo "debug part fin";exit +##################################################################################### startask (){ printf "\e[34m[$0]: Hi there!\n" printf 'This script 1. only works for ArchLinux and Arch-based distros.\n'