savannah-hackers-public
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Savannah-hackers-public] [PATCH 2/6] gsv-eval-remote.sh (process_packag


From: Bruno Félix Rezende Ribeiro
Subject: [Savannah-hackers-public] [PATCH 2/6] gsv-eval-remote.sh (process_package): add zip archive support.
Date: Wed, 23 Sep 2015 04:02:40 -0300

---
 gsv-eval-remote.sh | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gsv-eval-remote.sh b/gsv-eval-remote.sh
index 3298dc6..5d2bc43 100755
--- a/gsv-eval-remote.sh
+++ b/gsv-eval-remote.sh
@@ -127,6 +127,13 @@ process_package() {
             compress -d "$1" || die "failed to decompress '$1'"
             process_package "${1%.*}"
             ;;
+        *application/zip*)
+            DIRECTORY=$(mktemp -d zip.XXXXXX) \
+                || die "failed to create temporary directory"
+            unzip "$1" -d "$DIRECTORY" > /dev/null || die "failed to 
decompress '$1'"
+            cd "$DIRECTORY"
+            pwd
+            ;;
         *application/x-tar*)
             DIRECTORY=$(mktemp -d x-tar.XXXXXX) \
                 || die "failed to create temporary directory"
-- 
2.1.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]