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

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

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


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

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

diff --git a/gsv-eval-remote.sh b/gsv-eval-remote.sh
index d44cbe0..588a469 100755
--- a/gsv-eval-remote.sh
+++ b/gsv-eval-remote.sh
@@ -136,6 +136,13 @@ process_package() {
             cd "$DIRECTORY"
             pwd
             ;;
+        *application/x-rar*)
+            DIRECTORY=$(mktemp -d x-rar.XXXXXX) \
+                || die "failed to create temporary directory"
+            unar "$1" -o "$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]