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
+3 -1
View File
@@ -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)"