Update main_menu.sh

This commit is contained in:
MacRimi 2025-08-18 09:37:06 +02:00 committed by GitHub
parent 78f66af702
commit b8310f1c5d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -17,6 +17,12 @@ UTILS_FILE="$BASE_DIR/utils.sh"
VENV_PATH="/opt/googletrans-env"
if ! command -v dialog &>/dev/null; then
apt update -qq >/dev/null 2>&1
apt install -y dialog >/dev/null 2>&1
fi
check_pve9_translation_compatibility() {
local pve_version
@ -63,10 +69,6 @@ if [[ -f "$UTILS_FILE" ]]; then
source "$UTILS_FILE"
fi
if ! command -v dialog &>/dev/null; then
apt update -qq >/dev/null 2>&1
apt install -y dialog >/dev/null 2>&1
fi
if [[ "$PROXMENUX_PVE9_WARNING_SHOWN" = "1" ]]; then
@ -134,4 +136,4 @@ show_menu() {
done
}
show_menu
show_menu