From bb66c58d4876d6047b94a4a82faf75576c9c92e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Let?= Date: Wed, 5 Apr 2023 23:51:24 +0200 Subject: [PATCH] Better installation failed banner --- scripts/rawinstall.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/scripts/rawinstall.sh b/scripts/rawinstall.sh index bfcffc2..33fad5f 100755 --- a/scripts/rawinstall.sh +++ b/scripts/rawinstall.sh @@ -136,13 +136,18 @@ echo " * OK" if ! scripts/install.sh; then if [ $? != 130 ]; then echo - echo "INSTALLATION FAILED!" - echo "I'm sorry for the inconvenience." + printf '\e[31;1m' # red color on + printf '┌────────────────────────────┐\n' + printf '│ │\n' + printf '│ INSTALLATION FAILED! │\n' + printf '│ │\n' + printf '└────────────────────────────┘\n' + printf '\e[0m' # reset echo echo "Please create an issue: https://github.com/curusarn/resh/issues" fi echo - echo "You can rerun the installation by executing: (this will skip downloading)" + echo "Rerun the installation and skip downloading by running:" echo echo "cd $PWD && scripts/install.sh" echo