mirror of
https://github.com/AbdBarho/stable-diffusion-webui-docker.git
synced 2025-10-27 16:24:26 -04:00
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.
This commit is contained in:
@@ -39,7 +39,7 @@ if [ "${USE_KRITA}" = "true" ]; then
|
|||||||
ln -sfT /data/models/upscale_models upscale_models && cd ..
|
ln -sfT /data/models/upscale_models upscale_models && cd ..
|
||||||
fi
|
fi
|
||||||
if [ "${KRITA_DOWNLOAD_MODELS:-false}" = "true" ]; then
|
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
|
||||||
fi
|
fi
|
||||||
if [ "${USE_GGUF}" = "true" ]; then
|
if [ "${USE_GGUF}" = "true" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user