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:
Self Denial
2024-11-24 19:05:54 -07:00
parent 1ba0fa8546
commit ba5ecaa941

View File

@@ -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