#!/bin/bash cd /workspace/*/SD/models git fetch --all git reset --hard origin/main git pull git repack -a -d --depth=250 --window=250 rsync -r "embeddings/" "../embeddings/" rsync -r "extensions/" "../extensions/" cd .git rm -rf lfs cd /workspace/*/SD/models/Lora if [ -d "RALL" ]; then cd RALL git fetch --all git reset --hard origin/main git pull git repack -a -d --depth=250 --window=250 cd .git rm -rf lfs fi cd /workspace/*/SD/models/Lora if [ -d "RAL2" ]; then cd RAL2 git fetch --all git reset --hard origin/main git pull git repack -a -d --depth=250 --window=250 cd .git rm -rf lfs fi cd /workspace/*/SD/models/Lora if [ -d "RC1" ]; then cd RC1 git fetch --all git reset --hard origin/main git pull git repack -a -d --depth=250 --window=250 cd .git rm -rf lfs fi cd /workspace/*/SD/models/Lora if [ -d "RC2" ]; then cd RC2 git fetch --all git reset --hard origin/main git pull git repack -a -d --depth=250 --window=250 cd .git rm -rf lfs fi cd /workspace/*/SD/models/Lora if [ -d "RC3" ]; then cd RC3 git fetch --all git reset --hard origin/main git pull git repack -a -d --depth=250 --window=250 cd .git rm -rf lfs fi cd /workspace/*/SD/models/Lora if [ -d "RC4" ]; then cd RC4 git fetch --all git reset --hard origin/main git pull git repack -a -d --depth=250 --window=250 cd .git rm -rf lfs fi cd /workspace/*/SD/models/Lora if [ -d "RC5" ]; then cd RC5 git fetch --all git reset --hard origin/main git pull git repack -a -d --depth=250 --window=250 cd .git rm -rf lfs fi cd /workspace/*