refactor: switch from remote URLs to local script execution

This commit is contained in:
cod378
2025-11-03 01:36:57 +00:00
parent bff07311b2
commit 02b5cd61bd

View File

@@ -13,7 +13,7 @@
# ========================================================== # ==========================================================
# Configuration # Configuration
REPO_URL="https://raw.githubusercontent.com/MacRimi/ProxMenux/main" LOCAL_SCRIPTS="/usr/local/share/proxmenux/scripts"
BASE_DIR="/usr/local/share/proxmenux" BASE_DIR="/usr/local/share/proxmenux"
UTILS_FILE="$BASE_DIR/utils.sh" UTILS_FILE="$BASE_DIR/utils.sh"
VENV_PATH="/opt/googletrans-env" VENV_PATH="/opt/googletrans-env"
@@ -26,8 +26,8 @@ load_language
initialize_cache initialize_cache
# Load common share functions # Load common share functions
SHARE_COMMON_URL="https://raw.githubusercontent.com/MacRimi/ProxMenux/main/scripts/global/share-common.func" SHARE_COMMON_FILE="$LOCAL_SCRIPTS/global/share-common.func"
if ! source <(curl -s "$SHARE_COMMON_URL" 2>/dev/null); then if ! source "$SHARE_COMMON_FILE" 2>/dev/null; then
msg_warn "$(translate "Could not load shared functions. Using fallback methods.")" msg_warn "$(translate "Could not load shared functions. Using fallback methods.")"
SHARE_COMMON_LOADED=false SHARE_COMMON_LOADED=false
else else