|
#!/bin/bash |
|
|
|
cd /workspace/*/SD/models |
|
git fetch --all |
|
git reset --hard origin/main |
|
git pull |
|
rsync -r "embeddings/" "../embeddings/" |
|
git repack -a -d --depth=250 --window=250 |
|
cd .git |
|
rm -rf lfs |
|
|
|
cd /workspace/*/SD/models/Lora |
|
if [ -d "RCXL1" ]; then |
|
cd RCXL1 |
|
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 "RCXL2" ]; then |
|
cd RCXL2 |
|
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 "RCXL3" ]; then |
|
cd RCXL3 |
|
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 "RCXL4" ]; then |
|
cd RCXL4 |
|
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 "RCXL5" ]; then |
|
cd RCXL5 |
|
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/* |
|
|