From ba5ecaa9410a0ea7b79e895d762225279c9b5e49 Mon Sep 17 00:00:00 2001 From: Self Denial Date: Sun, 24 Nov 2024 19:05:54 -0700 Subject: [PATCH] fix: Ensure correct directory after creating symbolic link in entrypoint.sh This commit addresses an issue where the script did not change back to the original directory after creating a symbolic link. By adding `&& cd ..` at the end of the `ln -sfT /data/models/upscale_models upscale_models` command, we ensure that the working directory remains consistent and expected for subsequent operations in the script. This fix prevents potential errors or unexpected behavior due to an incorrect current working directory. --- 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 67318f1..e2fee4a 100755 --- a/services/comfy/entrypoint.sh +++ b/services/comfy/entrypoint.sh @@ -39,7 +39,7 @@ if [ "${USE_KRITA}" = "true" ]; then [ -d "${ROOT}/models/upscale_models" ] && rm -rf "${ROOT}/models/upscale_models" if [ ! -L "${ROOT}/models/upscale_models" ]; then cd "${ROOT}/models" - ln -sfT /data/models/upscale_models upscale_models + ln -sfT /data/models/upscale_models upscale_models && cd .. fi fi if [ "${USE_GGUF}" = "true" ]; then