From a282e3cf5bdc5f96cada77c36285299c11eb3bec Mon Sep 17 00:00:00 2001 From: Self Denial Date: Sun, 24 Nov 2024 21:53:35 -0700 Subject: [PATCH] fix: Correct directory change command in entrypoint.sh This commit fixes an issue in the `entrypoint.sh` script where the directory was not being changed back to its original location after running the model download script for Krita. The `cd ..` command has been replaced with `cd -`, which correctly returns to the previous working directory, ensuring that subsequent commands in the script are executed from the expected path. This change prevents potential errors and ensures the script behaves as intended. --- services/comfy/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/comfy/entrypoint.sh b/services/comfy/entrypoint.sh index 2f31fa1..6c04c0c 100755 --- a/services/comfy/entrypoint.sh +++ b/services/comfy/entrypoint.sh @@ -39,7 +39,7 @@ if [ "${USE_KRITA}" = "true" ]; then ln -sfT /data/models/upscale_models upscale_models && cd .. fi if [ "${KRITA_DOWNLOAD_MODELS:-false}" = "true" ]; then - cd "${ROOT}/krita-ai-diffusion/scripts" && python3 download_models.py --verbose --retry-attempts 10 --continue-on-error --recommended /data && cd .. + cd "${ROOT}/krita-ai-diffusion/scripts" && python3 download_models.py --verbose --retry-attempts 10 --continue-on-error --recommended /data && cd - fi fi if [ "${USE_GGUF}" = "true" ]; then