From 16c7513e82299bea54e66b02d6107eac26e94550 Mon Sep 17 00:00:00 2001 From: cod378 Date: Mon, 3 Nov 2025 01:39:15 +0000 Subject: [PATCH] refactor: switch from remote URLs to local script execution --- scripts/share/samba_client.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/share/samba_client.sh b/scripts/share/samba_client.sh index fd4867e..7f193f0 100644 --- a/scripts/share/samba_client.sh +++ b/scripts/share/samba_client.sh @@ -15,7 +15,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" @@ -26,8 +26,8 @@ if [[ -f "$UTILS_FILE" ]]; then fi -SHARE_COMMON_URL="https://raw.githubusercontent.com/MacRimi/ProxMenux/main/scripts/global/share-common.func" -if ! source <(curl -s "$SHARE_COMMON_URL" 2>/dev/null); then +SHARE_COMMON_FILE="$LOCAL_SCRIPTS/global/share-common.func" +if ! source "$SHARE_COMMON_FILE" 2>/dev/null; then msg_error "$(translate "Could not load shared functions. Script cannot continue.")" exit 1 fi @@ -1082,4 +1082,4 @@ while true; do 5) exit 0 ;; *) exit 0 ;; esac -done \ No newline at end of file +done