Update menu.sh

This commit is contained in:
MacRimi 2025-01-12 16:19:46 +01:00 committed by GitHub
parent 6924988587
commit caabfc76c0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -96,9 +96,10 @@ select_language() {
exec "$0"
}
# Verificar actualizaciones
check_updates() {
msg_info "$UPDATE_CHECKING"
if wget -qO "$REMOTE_VERSION_FILE" "$REPO_URL/version.txt?$(date +%s)"; then
if wget -qO- "$REPO_URL/version.txt?$(date +%s)" > "$REMOTE_VERSION_FILE"; then
REMOTE_VERSION=$(cat "$REMOTE_VERSION_FILE" | tr -d '\r' | tr -d '\n')
if [ ! -f "$LOCAL_VERSION_FILE" ]; then
@ -154,6 +155,7 @@ version_gt() {
test "$(printf '%s\n' "$@" | sort -V | head -n 1)" != "$1"
}
# Función para desinstalar ProxMenu
uninstall_proxmenu() {
if whiptail --title "$UNINSTALL_TITLE" --yesno "$UNINSTALL_CONFIRM" 10 60; then