From 5456ba0efd8eb132b31f9a75331533110b3d11ab Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Wed, 6 Jun 2012 14:31:56 +0400 Subject: [PATCH] do not follow symlinks for zip-archives --- functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.sh b/functions.sh index 865afbf..12382d0 100755 --- a/functions.sh +++ b/functions.sh @@ -51,7 +51,7 @@ pk () { g*z) gzip -c -9 -n $2 > $2.gz || rm -f $2.gz ;; x*z) xz -k -9 $2 ;; rar) rar a $2.rar $2 -m5 ;; - zip) zip -9 -r $2.zip $2 ;; + zip) zip -9 --symlinks -r $2.zip $2 ;; #Z) ;; 7z) 7z -mx=9 a $2.7z $2 ;; *) echo "'$1' cannot be packed via pk()" ;;