diff --git a/menu.sh b/menu.sh index 4bea53a..8fbc1a8 100644 --- a/menu.sh +++ b/menu.sh @@ -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