summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xextract_zips.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/extract_zips.sh b/extract_zips.sh
index bf76d10..749b6f4 100755
--- a/extract_zips.sh
+++ b/extract_zips.sh
@@ -1,10 +1,15 @@
#!/bin/bash
+if [ "x$1" = "x-j" ] ; then
+ switch=-j
+ shift
+fi
+
for i in $* ; do
dir=$(basename $i .zip)
mkdir $dir
cd $dir
- unzip ../$i
+ unzip $switch ../$i
cd ..
rm $i
done