diff --git a/defaults.inc b/defaults.inc index fadb5ad..c245875 100755 --- a/defaults.inc +++ b/defaults.inc @@ -3,7 +3,7 @@ action="${1:-}" FOLDER='/opt/idssys/ta-proxmenu' -VERS='2026.7.25-65' +VERS='2026.7.25-66' noupdate=' ' diff --git a/proxmenu-scripts.sh b/proxmenu-scripts.sh index 3fe1f0f..d881f77 100755 --- a/proxmenu-scripts.sh +++ b/proxmenu-scripts.sh @@ -1670,6 +1670,22 @@ LOAD_UPDATE_STATUS() { START_UPDATE_CHECK } +UPDATE_LAST_CHECKED_DISPLAY() { + local checked_at + + [[ -r "$UPDATE_CACHE_FILE" ]] || { + printf '%s\n' 'never' + return + } + IFS='|' read -r checked_at _ <"$UPDATE_CACHE_FILE" + [[ "$checked_at" =~ ^[0-9]+$ ]] || { + printf '%s\n' 'unknown' + return + } + date --date="@${checked_at}" '+%Y-%m-%d %H:%M %Z' 2>/dev/null || + printf '%s\n' 'unknown' +} + FORCE_UPDATE_CHECK() { local attempts=0 @@ -2167,6 +2183,7 @@ UTILITIES_MENU() { local -a labels local -a values=("install_update" "check_update" "branches" "about") local choice + local last_checked while true; do LOAD_UPDATE_STATUS @@ -2193,8 +2210,9 @@ UTILITIES_MENU() { labels=("Update status unavailable") ;; esac + last_checked="$(UPDATE_LAST_CHECKED_DISPLAY)" labels+=( - "Check again now" + "Check again now (last checked: ${last_checked})" "Git branch management" "Version and installation information" )