installation: add tips to failure message

This commit is contained in:
end-4
2024-10-13 17:56:07 +02:00
committed by GitHub
parent 08cd651fd1
commit c637f5bb8b
+4 -2
View File
@@ -38,7 +38,9 @@ function x() {
if "$@";then cmdstatus=0;else cmdstatus=1;fi # 0=normal; 1=failed; 2=failed but ignored if "$@";then cmdstatus=0;else cmdstatus=1;fi # 0=normal; 1=failed; 2=failed but ignored
while [ $cmdstatus == 1 ] ;do while [ $cmdstatus == 1 ] ;do
echo -e "\e[31m[$0]: Command \"\e[32m$@\e[31m\" has failed." 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 " r = Repeat this command (DEFAULT)"
echo " e = Exit now" echo " e = Exit now"
echo " i = Ignore this error and continue (your setup might not work correctly)" 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" echo "Backing up $HOME/.local to $backup_dir/local_backup"
rsync -av --progress "$HOME/.local/" "$backup_dir/local_backup/" rsync -av --progress "$HOME/.local/" "$backup_dir/local_backup/"
} }