From a3523ff21a921263433b0bc85961a023e2c4eb3c Mon Sep 17 00:00:00 2001 From: MacRimi <123239993+MacRimi@users.noreply.github.com> Date: Tue, 4 Feb 2025 09:09:22 +0100 Subject: [PATCH] Update disk-passthrough.sh --- scripts/disk-passthrough.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/disk-passthrough.sh b/scripts/disk-passthrough.sh index 3d1ce9c..1dd954b 100644 --- a/scripts/disk-passthrough.sh +++ b/scripts/disk-passthrough.sh @@ -34,9 +34,8 @@ CACHE_FILE="$BASE_DIR/cache.json" CONFIG_FILE="$BASE_DIR/config.json" 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 load_language