Convert warning to error if can't update script

This commit is contained in:
Emanuele Petriglia 2018-06-16 10:45:36 +02:00
parent 68c5a17f5f
commit 56e15eb77a
No known key found for this signature in database
GPG Key ID: CD2F70AE16A43647

View File

@ -36,7 +36,7 @@ log() {
fi
}
# Updates the installer script. It set "true" the variable UPDATED if this
# Updates the installer script. It sets "true" the variable UPDATED if this
# script is succesfully updated.
update_installer() {
local TMPFILE="$(mktemp)"
@ -49,7 +49,7 @@ update_installer() {
log "Updater script succesfully downloaded!"
UPDATED="true"
else
warn "Failed to download the updater script."
error "Failed to download the updater script."
fi
mv "$TMPFILE" "UPDATER.SH"