mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-06-28 04:06:54 +00:00
Update menu.sh
This commit is contained in:
parent
6924988587
commit
caabfc76c0
4
menu.sh
4
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user