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