mirror of
https://github.com/arkenfox/user.js.git
synced 2025-04-22 08:29:31 -04:00
Convert warning to error if can't update script
This commit is contained in:
parent
68c5a17f5f
commit
56e15eb77a
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user