Upload forcePull.sh
Browse files- forcePull.sh +7 -14
forcePull.sh
CHANGED
|
@@ -11,8 +11,7 @@ cd .git
|
|
| 11 |
rm -rf lfs
|
| 12 |
|
| 13 |
cd /workspace/firstContainer/SD/models/Lora
|
| 14 |
-
if [
|
| 15 |
-
else
|
| 16 |
cd RALL
|
| 17 |
git fetch --all
|
| 18 |
git reset --hard origin/main
|
|
@@ -22,8 +21,7 @@ else
|
|
| 22 |
rm -rf lfs
|
| 23 |
fi
|
| 24 |
cd /workspace/firstContainer/SD/models/Lora
|
| 25 |
-
if [
|
| 26 |
-
else
|
| 27 |
cd RAL2
|
| 28 |
git fetch --all
|
| 29 |
git reset --hard origin/main
|
|
@@ -33,8 +31,7 @@ else
|
|
| 33 |
rm -rf lfs
|
| 34 |
fi
|
| 35 |
cd /workspace/firstContainer/SD/models/Lora
|
| 36 |
-
if [
|
| 37 |
-
else
|
| 38 |
cd RC1
|
| 39 |
git fetch --all
|
| 40 |
git reset --hard origin/main
|
|
@@ -44,8 +41,7 @@ else
|
|
| 44 |
rm -rf lfs
|
| 45 |
fi
|
| 46 |
cd /workspace/firstContainer/SD/models/Lora
|
| 47 |
-
if [
|
| 48 |
-
else
|
| 49 |
cd RC2
|
| 50 |
git fetch --all
|
| 51 |
git reset --hard origin/main
|
|
@@ -55,8 +51,7 @@ else
|
|
| 55 |
rm -rf lfs
|
| 56 |
fi
|
| 57 |
cd /workspace/firstContainer/SD/models/Lora
|
| 58 |
-
if [
|
| 59 |
-
else
|
| 60 |
cd RC3
|
| 61 |
git fetch --all
|
| 62 |
git reset --hard origin/main
|
|
@@ -66,8 +61,7 @@ else
|
|
| 66 |
rm -rf lfs
|
| 67 |
fi
|
| 68 |
cd /workspace/firstContainer/SD/models/Lora
|
| 69 |
-
if [
|
| 70 |
-
else
|
| 71 |
cd RC4
|
| 72 |
git fetch --all
|
| 73 |
git reset --hard origin/main
|
|
@@ -77,8 +71,7 @@ else
|
|
| 77 |
rm -rf lfs
|
| 78 |
fi
|
| 79 |
cd /workspace/firstContainer/SD/models/Lora
|
| 80 |
-
if [
|
| 81 |
-
else
|
| 82 |
cd RC5
|
| 83 |
git fetch --all
|
| 84 |
git reset --hard origin/main
|
|
|
|
| 11 |
rm -rf lfs
|
| 12 |
|
| 13 |
cd /workspace/firstContainer/SD/models/Lora
|
| 14 |
+
if [ -d "RALL" ]; then
|
|
|
|
| 15 |
cd RALL
|
| 16 |
git fetch --all
|
| 17 |
git reset --hard origin/main
|
|
|
|
| 21 |
rm -rf lfs
|
| 22 |
fi
|
| 23 |
cd /workspace/firstContainer/SD/models/Lora
|
| 24 |
+
if [ -d "RAL2" ]; then
|
|
|
|
| 25 |
cd RAL2
|
| 26 |
git fetch --all
|
| 27 |
git reset --hard origin/main
|
|
|
|
| 31 |
rm -rf lfs
|
| 32 |
fi
|
| 33 |
cd /workspace/firstContainer/SD/models/Lora
|
| 34 |
+
if [ -d "RC1" ]; then
|
|
|
|
| 35 |
cd RC1
|
| 36 |
git fetch --all
|
| 37 |
git reset --hard origin/main
|
|
|
|
| 41 |
rm -rf lfs
|
| 42 |
fi
|
| 43 |
cd /workspace/firstContainer/SD/models/Lora
|
| 44 |
+
if [ -d "RC2" ]; then
|
|
|
|
| 45 |
cd RC2
|
| 46 |
git fetch --all
|
| 47 |
git reset --hard origin/main
|
|
|
|
| 51 |
rm -rf lfs
|
| 52 |
fi
|
| 53 |
cd /workspace/firstContainer/SD/models/Lora
|
| 54 |
+
if [ -d "RC3" ]; then
|
|
|
|
| 55 |
cd RC3
|
| 56 |
git fetch --all
|
| 57 |
git reset --hard origin/main
|
|
|
|
| 61 |
rm -rf lfs
|
| 62 |
fi
|
| 63 |
cd /workspace/firstContainer/SD/models/Lora
|
| 64 |
+
if [ -d "RC4" ]; then
|
|
|
|
| 65 |
cd RC4
|
| 66 |
git fetch --all
|
| 67 |
git reset --hard origin/main
|
|
|
|
| 71 |
rm -rf lfs
|
| 72 |
fi
|
| 73 |
cd /workspace/firstContainer/SD/models/Lora
|
| 74 |
+
if [ -d "RC5" ]; then
|
|
|
|
| 75 |
cd RC5
|
| 76 |
git fetch --all
|
| 77 |
git reset --hard origin/main
|