From 22914c1e4d47abe7321f9178eb6481c0614e8542 Mon Sep 17 00:00:00 2001 From: Folzo Date: Mon, 6 Apr 2026 01:20:46 +0200 Subject: [PATCH] Fix download script path detection Use absolute path instead of relative /bin Ensures models are downloaded to correct location regardless of current working directory when running the script --- comfyui/download-more-models.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/comfyui/download-more-models.sh b/comfyui/download-more-models.sh index f6e6be5..3bb125b 100755 --- a/comfyui/download-more-models.sh +++ b/comfyui/download-more-models.sh @@ -4,8 +4,10 @@ set -e -MODELS_DIR="$(dirname "$0")/models/checkpoints" -VAE_DIR="$(dirname "$0")/models/vae" +# Détection robuste du répertoire du script +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +MODELS_DIR="$SCRIPT_DIR/models/checkpoints" +VAE_DIR="$SCRIPT_DIR/models/vae" mkdir -p "$MODELS_DIR" "$VAE_DIR"