pentoo-updater: warn on all errors indescriminately

This commit is contained in:
Rick Farina (Zero_Chaos) 2019-03-17 21:48:08 -04:00
parent 87c830da1c
commit fc6a7ffc07
No known key found for this signature in database
GPG key ID: A5DD1427DD11F94A

View file

@ -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