refactor: switch from remote URLs to local script execution

This commit is contained in:
cod378
2025-11-03 01:34:44 +00:00
parent 44cc89b9d5
commit bff07311b2

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"
@@ -22,8 +22,8 @@ if [[ -f "$UTILS_FILE" ]]; then
fi fi
# Load shared functions # Load shared 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_error "$(translate "Could not load shared functions. Script cannot continue.")" msg_error "$(translate "Could not load shared functions. Script cannot continue.")"
exit 1 exit 1
fi fi
@@ -684,4 +684,4 @@ while true; do
5) exit 0 ;; 5) exit 0 ;;
*) exit 0 ;; *) exit 0 ;;
esac esac
done done