From b4399d228f73ec26a5577b34bb3727f515c61643 Mon Sep 17 00:00:00 2001 From: MacRimi <123239993+MacRimi@users.noreply.github.com> Date: Sat, 1 Feb 2025 08:48:45 +0100 Subject: [PATCH] Update configure_igpu_lxc.sh --- scripts/configure_igpu_lxc.sh | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/scripts/configure_igpu_lxc.sh b/scripts/configure_igpu_lxc.sh index 5281bba..f099664 100644 --- a/scripts/configure_igpu_lxc.sh +++ b/scripts/configure_igpu_lxc.sh @@ -26,17 +26,13 @@ # ========================================================== # Configuration ============================================ -UTILS_URL="https://raw.githubusercontent.com/MacRimi/ProxMenux/main/scripts/utils.sh" BASE_DIR="/usr/local/share/proxmenux" -CACHE_FILE="$BASE_DIR/cache.json" -CONFIG_FILE="$BASE_DIR/config.json" +UTILS_FILE="$BASE_DIR/utils.sh" VENV_PATH="/opt/googletrans-env" -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