mirror of
https://github.com/tw93/Mole.git
synced 2026-03-24 00:25:06 +00:00
Neat and uniform output
This commit is contained in:
2
mole
2
mole
@@ -44,7 +44,7 @@ check_for_updates() {
|
|||||||
grep '^VERSION=' | head -1 | sed 's/VERSION="\(.*\)"/\1/')
|
grep '^VERSION=' | head -1 | sed 's/VERSION="\(.*\)"/\1/')
|
||||||
|
|
||||||
if [[ -n "$latest" && "$VERSION" != "$latest" && "$(printf '%s\n' "$VERSION" "$latest" | sort -V | head -1)" == "$VERSION" ]]; then
|
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
|
else
|
||||||
echo -n > "$msg_cache"
|
echo -n > "$msg_cache"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user