From b1b27c649dde9d1b32ea5e9e55918a4ee9456443 Mon Sep 17 00:00:00 2001 From: Tw93 Date: Thu, 9 Oct 2025 14:53:47 +0800 Subject: [PATCH] Neat and uniform output --- mole | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mole b/mole index eee7a53..42f10ed 100755 --- a/mole +++ b/mole @@ -44,7 +44,7 @@ check_for_updates() { grep '^VERSION=' | head -1 | sed 's/VERSION="\(.*\)"/\1/') if [[ -n "$latest" && "$VERSION" != "$latest" && "$(printf '%s\n' "$VERSION" "$latest" | sort -V | head -1)" == "$VERSION" ]]; then - echo -e "${YELLOW}New version ${GREEN}${latest}${YELLOW} available (current: ${VERSION})\n Run ${GREEN}mole update${YELLOW} to upgrade${NC}" > "$msg_cache" + echo -e "${YELLOW}New version ${GREEN}${latest}${YELLOW} available (current: ${VERSION})\n${YELLOW} Run ${GREEN}mole update${YELLOW} to upgrade${NC}" > "$msg_cache" else echo -n > "$msg_cache" fi