From 8df0391cabf01f622d4f71e8aec9d9a79d5e1c49 Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Sat, 2 Nov 2019 17:05:12 +0100 Subject: [PATCH] update motd-script --- wo/cli/templates/wo-update.mustache | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wo/cli/templates/wo-update.mustache b/wo/cli/templates/wo-update.mustache index 6ad2c01..f1ab266 100644 --- a/wo/cli/templates/wo-update.mustache +++ b/wo/cli/templates/wo-update.mustache @@ -33,5 +33,8 @@ if [ -n "$CURRENT_RELEASE" ] && [ -n "$LATEST_RELEASE" ]; then safe_print "$NEWS" # Try to update the cache safe_print "$NEWS" 2> /dev/null > $CACHE || true - fi + else + # clean news + echo '' > "$NEWS" 2> "$ERR" + safe_print "$NEWS" 2> /dev/null > $CACHE || true fi