From 4ab6c37eb7216afc46166e59f5c23fdb7cfbedb4 Mon Sep 17 00:00:00 2001
From: fmckenna <fmckenna@berkeley.edu>
Date: Thu, 18 Apr 2024 12:27:10 -0700
Subject: [PATCH] fmk - adding sh script to zip all for zenodo

---
 zipAll.sh | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100755 zipAll.sh

diff --git a/zipAll.sh b/zipAll.sh
new file mode 100755
index 0000000..c1d2465
--- /dev/null
+++ b/zipAll.sh
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+# remove currrent zip files
+rm *.zip
+
+# Loop through each directory in the current directory
+for dir in */; do
+    # Remove trailing slash
+    dir=${dir%/}
+    
+    # Check if it's a directory
+    if [ -d "$dir" ]; then
+        # Create a zip file with the same name as the directory
+        zip -r "${dir}.zip" "$dir"
+        echo "Zipped $dir"
+    fi
+done
+
+echo "All folders in the current directory zipped successfully"