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
This commit is contained in:
Folzo
2026-04-06 01:20:46 +02:00
parent 97348e9a12
commit 22914c1e4d
+4 -2
View File
@@ -4,8 +4,10 @@
set -e set -e
MODELS_DIR="$(dirname "$0")/models/checkpoints" # Détection robuste du répertoire du script
VAE_DIR="$(dirname "$0")/models/vae" 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" mkdir -p "$MODELS_DIR" "$VAE_DIR"