Update hw_grafics_menu.sh

This commit is contained in:
MacRimi 2025-02-01 08:52:19 +01:00 committed by GitHub
parent 0ab19a39fc
commit 5494e28c0b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,20 +13,15 @@
# Configuration ============================================
REPO_URL="https://raw.githubusercontent.com/MacRimi/ProxMenux/main"
UTILS_URL="https://raw.githubusercontent.com/MacRimi/ProxMenux/main/scripts/utils.sh"
BASE_DIR="/usr/local/share/proxmenux"
CACHE_FILE="$BASE_DIR/cache.json"
UTILS_FILE="$BASE_DIR/utils.sh"
VENV_PATH="/opt/googletrans-env"
LANGUAGE=$(jq -r '.language // "en"' "$BASE_DIR/config.json" 2>/dev/null)
if ! source <(curl -sSf "$UTILS_URL"); then
echo "$(translate 'Error: Could not load utils.sh from') $UTILS_URL"
exit 1
if [[ -f "$UTILS_FILE" ]]; then
source "$UTILS_FILE"
fi
initialize_cache
load_language
initialize_cache
# ==========================================================
while true; do