From 9256e77ac2776489b733faf25027b0eedf870fd9 Mon Sep 17 00:00:00 2001 From: Emanuele Petriglia Date: Sun, 17 Jun 2018 19:54:18 +0200 Subject: [PATCH] Mark output messagges (log, error or warning) --- updater.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/updater.sh b/updater.sh index e185976..048d2d5 100755 --- a/updater.sh +++ b/updater.sh @@ -28,21 +28,21 @@ UPDATED="false" # Prints a message to the standard error and exit with error code 1. error() { - echo -e "$@" >&2 + echo "[Error] $@" >&2 exit 1 } # Prints a message to the standard erorr without terminate execution. warn() { if [[ "$QUIET" == "false" ]]; then - echo -e "$@" >&2 + echo "[Warning] $@" >&2 fi } # Prints a message to the standard output. log() { if [[ "$VERBOSE" == "true" && "$QUIET" == "false" ]]; then - echo -e "$@" + echo "[Log] $@" fi }