Commit
·
26dee1b
1
Parent(s):
7327794
fix
Browse files- demos/AnymalC-Reach-v1.zip +2 -2
- demos/LiftPegUpright-v1.zip +2 -2
- demos/PickCube-v1.zip +2 -2
- demos/PokeCube-v1.zip +2 -2
- demos/PullCube-v1.zip +2 -2
- demos/PushCube-v1.zip +2 -2
- demos/PushT-v1.zip +2 -2
- demos/RollBall-v1.zip +2 -2
- demos/StackCube-v1.zip +2 -2
- demos/TwoRobotPickCube-v1.zip +2 -2
- demos/TwoRobotStackCube-v1.zip +2 -2
- hooks/zip_modified_demos.sh +19 -14
demos/AnymalC-Reach-v1.zip
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:451f91a4ba2f882a27c80014c43a10aa5d34a8617e8c34842d89bd50e429b271
|
3 |
+
size 38479775
|
demos/LiftPegUpright-v1.zip
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:401d975e4036769ed6615a86dce553bfdd690470500737f75c4867d536a39b57
|
3 |
+
size 14941509
|
demos/PickCube-v1.zip
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5012a7e087b6a0dc4275690876767b07e16139028dc791dfc8817d49edde605a
|
3 |
+
size 36589871
|
demos/PokeCube-v1.zip
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6b2a93127cce77e39242ad09b1ebc8e74981ed4b4dc0788cd3f7e38cb6c81ac9
|
3 |
+
size 22891971
|
demos/PullCube-v1.zip
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5dc3cee37e47cb7b36ce5ae2e2d87408098dcf9fa0c127cf015dc2b2e43c6f5e
|
3 |
+
size 11142543
|
demos/PushCube-v1.zip
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0cea170f9dd4dfabf6e6c6bfb4310dc9d97fed925b33e1472411b10164d96e84
|
3 |
+
size 24574537
|
demos/PushT-v1.zip
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:341b9bee4297f4ed4be753117ae79a7e13ed59ee2a230e0c59f96c31c96d5adb
|
3 |
+
size 35715787
|
demos/RollBall-v1.zip
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b0ebe184ab838b93e60143ce16c823cc7fc1d7da61e28605c0b3a994ac182c96
|
3 |
+
size 16731821
|
demos/StackCube-v1.zip
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:aa5396df956640c4682981d7ddad81122c62a4daded6e6a92e289977832e9fd2
|
3 |
+
size 43486404
|
demos/TwoRobotPickCube-v1.zip
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:da7a8eab09f891f78df5c7f725ed822fa7cd0bbacac1229e8742470236e7c055
|
3 |
+
size 25813844
|
demos/TwoRobotStackCube-v1.zip
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:883d1fb6994e0b1a819d1db8047b458b49da586a8531f0a43c2b0f75070663b5
|
3 |
+
size 28189657
|
hooks/zip_modified_demos.sh
CHANGED
@@ -14,24 +14,29 @@ root_dir=$(git rev-parse --show-toplevel)
|
|
14 |
cd "$root_dir/demos"
|
15 |
|
16 |
for folder in ./*; do
|
|
|
|
|
|
|
|
|
|
|
17 |
# Remove trailing slash and demos/ prefix
|
18 |
folder=${folder#demos/}
|
19 |
echo $folder
|
20 |
# Check if any changed files are in this folder
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
done
|
36 |
|
37 |
if [ "$any_changes" = false ]; then
|
|
|
14 |
cd "$root_dir/demos"
|
15 |
|
16 |
for folder in ./*; do
|
17 |
+
# Skip if this is a zip file
|
18 |
+
if [[ "$folder" == *.zip ]]; then
|
19 |
+
continue
|
20 |
+
fi
|
21 |
+
|
22 |
# Remove trailing slash and demos/ prefix
|
23 |
folder=${folder#demos/}
|
24 |
echo $folder
|
25 |
# Check if any changed files are in this folder
|
26 |
+
if echo "$changed_files" | grep -q "^$folder/"; then
|
27 |
+
echo "Changes detected in $folder, rezipping..."
|
28 |
+
|
29 |
+
# Remove existing zip if it exists
|
30 |
+
rm -f "$folder.zip"
|
31 |
+
|
32 |
+
# Create new zip archive
|
33 |
+
zip -r "$folder.zip" "$folder"
|
34 |
+
|
35 |
+
# Stage the new zip file
|
36 |
+
git add "$folder.zip"
|
37 |
+
|
38 |
+
any_changes=true
|
39 |
+
fi
|
40 |
done
|
41 |
|
42 |
if [ "$any_changes" = false ]; then
|