Commit
·
9472d3a
1
Parent(s):
26dee1b
update
Browse files
hooks/zip_modified_demos.sh
CHANGED
|
@@ -13,7 +13,7 @@ root_dir=$(git rev-parse --show-toplevel)
|
|
| 13 |
# Change to the demos directory relative to root
|
| 14 |
cd "$root_dir/demos"
|
| 15 |
|
| 16 |
-
for folder in
|
| 17 |
# Skip if this is a zip file
|
| 18 |
if [[ "$folder" == *.zip ]]; then
|
| 19 |
continue
|
|
@@ -23,7 +23,7 @@ for folder in ./*; do
|
|
| 23 |
folder=${folder#demos/}
|
| 24 |
echo $folder
|
| 25 |
# Check if any changed files are in this folder
|
| 26 |
-
if echo "$changed_files" | grep -q "
|
| 27 |
echo "Changes detected in $folder, rezipping..."
|
| 28 |
|
| 29 |
# Remove existing zip if it exists
|
|
|
|
| 13 |
# Change to the demos directory relative to root
|
| 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
|
|
|
|
| 23 |
folder=${folder#demos/}
|
| 24 |
echo $folder
|
| 25 |
# Check if any changed files are in this folder
|
| 26 |
+
if echo "$changed_files" | grep -q "demos/$folder/*"; then
|
| 27 |
echo "Changes detected in $folder, rezipping..."
|
| 28 |
|
| 29 |
# Remove existing zip if it exists
|