From c637f5bb8b0eaea704dcd45599dc94713b381a9b Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Sun, 13 Oct 2024 17:56:07 +0200 Subject: [PATCH] installation: add tips to failure message --- scriptdata/functions | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scriptdata/functions b/scriptdata/functions index 98e18c977..51afb830a 100644 --- a/scriptdata/functions +++ b/scriptdata/functions @@ -38,7 +38,9 @@ function x() { if "$@";then cmdstatus=0;else cmdstatus=1;fi # 0=normal; 1=failed; 2=failed but ignored while [ $cmdstatus == 1 ] ;do 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 -e "You may need to resolve the problem manually BEFORE repeating this command." + echo -e "[Tip] If a certain package is failing to install, try installing it separately in another terminal." + echo -e "[Tip] If a package is conflicting with its -git version, in another terminal, install the -git one.\e[0m" echo " r = Repeat this command (DEFAULT)" echo " e = Exit now" echo " i = Ignore this error and continue (your setup might not work correctly)" @@ -82,4 +84,4 @@ function backup_configs() { echo "Backing up $HOME/.local to $backup_dir/local_backup" rsync -av --progress "$HOME/.local/" "$backup_dir/local_backup/" -} \ No newline at end of file +}