From 56e15eb77a50c364fcba7c4aced3769a2a845294 Mon Sep 17 00:00:00 2001 From: Emanuele Petriglia Date: Sat, 16 Jun 2018 10:45:36 +0200 Subject: [PATCH] Convert warning to error if can't update script --- updater.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/updater.sh b/updater.sh index 01a62ab..e55793b 100755 --- a/updater.sh +++ b/updater.sh @@ -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"