mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-07-01 21:56:52 +00:00
Update main_menu2.sh
This commit is contained in:
parent
c08590d6b5
commit
dbb6b345b0
@ -156,9 +156,15 @@ change_language() {
|
|||||||
|
|
||||||
echo "{\"language\": \"$LANGUAGE\"}" > "$CONFIG_FILE"
|
echo "{\"language\": \"$LANGUAGE\"}" > "$CONFIG_FILE"
|
||||||
msg_ok "$(translate "Language changed to") $LANGUAGE"
|
msg_ok "$(translate "Language changed to") $LANGUAGE"
|
||||||
exec "$0"
|
|
||||||
|
# 🔄 Descargar y ejecutar el script nuevamente para aplicar el cambio
|
||||||
|
TMP_FILE=$(mktemp)
|
||||||
|
curl -s "$REPO_URL/scripts/menus/config_menu.sh" > "$TMP_FILE"
|
||||||
|
chmod +x "$TMP_FILE"
|
||||||
|
exec bash "$TMP_FILE"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# Function to check and perform updates
|
# Function to check and perform updates
|
||||||
check_updates() {
|
check_updates() {
|
||||||
# Obtener la versión remota directamente
|
# Obtener la versión remota directamente
|
||||||
|
Loading…
x
Reference in New Issue
Block a user