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 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. # script is succesfully updated.
update_installer() { update_installer() {
local TMPFILE="$(mktemp)" local TMPFILE="$(mktemp)"
@ -49,7 +49,7 @@ update_installer() {
log "Updater script succesfully downloaded!" log "Updater script succesfully downloaded!"
UPDATED="true" UPDATED="true"
else else
warn "Failed to download the updater script." error "Failed to download the updater script."
fi fi
mv "$TMPFILE" "UPDATER.SH" mv "$TMPFILE" "UPDATER.SH"