Skip to content

Commit c120569

Browse files
authored
tools.func: update update_check messages for clarity (#8588)
* Update update check messages for clarity * Change message for no update available case
1 parent 394787e commit c120569

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

misc/tools.func

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -901,22 +901,22 @@ check_for_gh_release() {
901901

902902
if [[ "$current" != "$pin_clean" ]]; then
903903
CHECK_UPDATE_RELEASE="$match_raw"
904-
msg_ok "Checking for update: ${app}"
904+
msg_ok "Update available: ${app} ${current:-not installed}${pin_clean}"
905905
return 0
906906
fi
907907

908-
msg_ok "Checking for update: ${app}"
908+
msg_error "No update available: ${app} is not installed!"
909909
return 1
910910
fi
911911

912912
# No pinning → use latest
913913
if [[ -z "$current" || "$current" != "$latest_clean" ]]; then
914914
CHECK_UPDATE_RELEASE="$latest_raw"
915-
msg_ok "Checking for update: ${app}"
915+
msg_ok "Update available: ${app} ${current:-not installed}${latest_clean}"
916916
return 0
917917
fi
918918

919-
msg_ok "Checking for update: ${app}"
919+
msg_ok "No update available: ${app} (${latest_clean})"
920920
return 1
921921
}
922922

0 commit comments

Comments
 (0)