From 3275a1ecb41f796e69d925813fc1ef9ad2025aaf Mon Sep 17 00:00:00 2001 From: cod378 Date: Mon, 3 Nov 2025 01:17:21 +0000 Subject: [PATCH] refactor: replace remote script loading with local paths --- scripts/menus/storage_menu.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/menus/storage_menu.sh b/scripts/menus/storage_menu.sh index 3537a0e..f2a1829 100644 --- a/scripts/menus/storage_menu.sh +++ b/scripts/menus/storage_menu.sh @@ -12,7 +12,7 @@ # Configuration ============================================ -REPO_URL="https://raw.githubusercontent.com/MacRimi/ProxMenux/main" +LOCAL_SCRIPTS="/usr/local/share/proxmenux/scripts" BASE_DIR="/usr/local/share/proxmenux" UTILS_FILE="$BASE_DIR/utils.sh" VENV_PATH="/opt/googletrans-env" @@ -36,19 +36,19 @@ while true; do case $OPTION in 1) - bash <(curl -s "$REPO_URL/scripts/storage/disk-passthrough.sh") + bash "$LOCAL_SCRIPTS/storage/disk-passthrough.sh" ;; 2) - bash <(curl -s "$REPO_URL/scripts/storage/disk-passthrough_ct.sh") + bash "$LOCAL_SCRIPTS/storage/disk-passthrough_ct.sh" ;; 3) - bash <(curl -s "$REPO_URL/scripts/storage/import-disk-image.sh") + bash "$LOCAL_SCRIPTS/storage/import-disk-image.sh" ;; 4) - exec bash <(curl -s "$REPO_URL/scripts/menus/main_menu.sh") + exec bash "$LOCAL_SCRIPTS/menus/main_menu.sh" ;; *) - exec bash <(curl -s "$REPO_URL/scripts/menus/main_menu.sh") + exec bash "$LOCAL_SCRIPTS/menus/main_menu.sh" ;; esac done