mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-11-06 03:12:50 +00:00
tools.func: update update_check messages for clarity (#8588)
* Update update check messages for clarity * Change message for no update available case
This commit is contained in:
@@ -901,22 +901,22 @@ check_for_gh_release() {
|
|||||||
|
|
||||||
if [[ "$current" != "$pin_clean" ]]; then
|
if [[ "$current" != "$pin_clean" ]]; then
|
||||||
CHECK_UPDATE_RELEASE="$match_raw"
|
CHECK_UPDATE_RELEASE="$match_raw"
|
||||||
msg_ok "Checking for update: ${app}"
|
msg_ok "Update available: ${app} ${current:-not installed} → ${pin_clean}"
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
msg_ok "Checking for update: ${app}"
|
msg_error "No update available: ${app} is not installed!"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# No pinning → use latest
|
# No pinning → use latest
|
||||||
if [[ -z "$current" || "$current" != "$latest_clean" ]]; then
|
if [[ -z "$current" || "$current" != "$latest_clean" ]]; then
|
||||||
CHECK_UPDATE_RELEASE="$latest_raw"
|
CHECK_UPDATE_RELEASE="$latest_raw"
|
||||||
msg_ok "Checking for update: ${app}"
|
msg_ok "Update available: ${app} ${current:-not installed} → ${latest_clean}"
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
msg_ok "Checking for update: ${app}"
|
msg_ok "No update available: ${app} (${latest_clean})"
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user