From 17c44cabcb35277c7f8b1ff16eb8ccfc623c6a64 Mon Sep 17 00:00:00 2001 From: PassiveLemon Date: Sun, 7 May 2023 12:50:33 -0400 Subject: [PATCH] Check if requirement.txt exists Wont error from a file that doesn't exist --- services/comfy/entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/comfy/entrypoint.sh b/services/comfy/entrypoint.sh index a962ac5..8161566 100755 --- a/services/comfy/entrypoint.sh +++ b/services/comfy/entrypoint.sh @@ -47,8 +47,8 @@ done if [ "$(ls -A /stable-diffusion/custom_nodes)" ]; then chmod 777 -R "/stable-diffusion/custom_nodes/" apt-get install build-essential -y - for dir in "/stable-diffusion/custom_nodes/*/"; do - if [ -d $dir ]; then + for dir in "/stable-diffusion/custom_nodes/*"; do + if [ -e "$dir/requirements.txt" ]; then echo $dir cd $dir pip install -r requirements.txt