From e1f37a2f3c5d9b314e40e2be4db7d68540cbd4f2 Mon Sep 17 00:00:00 2001 From: cmdr2 Date: Mon, 12 Sep 2022 21:34:53 +0530 Subject: [PATCH] Fix the comparison check for linux --- scripts/on_sd_start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/on_sd_start.sh b/scripts/on_sd_start.sh index f540d08c..1ef35ec4 100755 --- a/scripts/on_sd_start.sh +++ b/scripts/on_sd_start.sh @@ -147,7 +147,7 @@ fi if [ -f "sd-v1-4.ckpt" ]; then model_size=`ls -l sd-v1-4.ckpt | awk '{print $5}'` - if [ "$model_size" -eq "4265380512" ]; then + if [ ! "$model_size" == "4265380512" ] && [ ! "$model_size" == "7703807346" ] && [ ! "$model_size" == "7703810927" ]; then echo "Data files (weights) necessary for Stable Diffusion were already downloaded" else printf "\n\nThe model file present at $PWD/sd-v1-4.ckpt is invalid. It is only $model_size bytes in size. Re-downloading.."