From fc6a7ffc07e6768c2d5bd1d3ee867cfaa6ec819d Mon Sep 17 00:00:00 2001 From: "Rick Farina (Zero_Chaos)" Date: Sun, 17 Mar 2019 21:48:08 -0400 Subject: [PATCH] pentoo-updater: warn on all errors indescriminately --- scripts/pentoo-updater.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/scripts/pentoo-updater.sh b/scripts/pentoo-updater.sh index 9b83bd52e..b333d2e65 100755 --- a/scripts/pentoo-updater.sh +++ b/scripts/pentoo-updater.sh @@ -1,4 +1,5 @@ #!/bin/sh +WE_FAILED=0 if [ -n "$(command -v id 2> /dev/null)" ]; then USERID="$(id -u 2> /dev/null)" fi @@ -167,7 +168,10 @@ safe_exit() { if [ -n "${clst_target}" ] && [ -n "${debugshell}" ]; then /bin/bash elif [ -n "${clst_target}" ] && [ -n "${reckless}" ]; then - echo "Continuing despite failure...grumble grumble" 1>&2 + printf "FAILURE FAILURE FAILURE\n" 1>&2 + printf "Continuing despite failure...grumble grumble\n" 1>&2 + printf "FAILURE FAILURE FAILURE\n" 1>&2 + export WE_FAILED=1 #else #let's let it keep going by default instead of just failing out # exit fi @@ -331,3 +335,8 @@ fi if [ -z "${clst_target}" ]; then update_kernel fi +if [ "${WE_FAILED}" = "1" ]; then + printf "Something failed during update. Run pentoo-updater again, if\n" + printf "you see this message again, look through the logs for:\n" + printf "FAILURE FAILURE FAILURE\n" +fi