From 287a2c9b931c701c5327e80e1fc49a83a3c6a742 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Thu, 14 Feb 2013 12:39:44 +0100 Subject: Don't save timestamp when gzipping Signed-off-by: Florian Pritz --- fb.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fb.in b/fb.in index d96146b..db76fbe 100644 --- a/fb.in +++ b/fb.in @@ -127,7 +127,7 @@ is_url() { do_tar_upload() { if [ "$compress" = "1" ]; then file="$tmpdir/upload.tar.gz" - tar -cf - -- "$@" | gzip -c > "$file" || return 1 + tar -cf - -- "$@" | gzip -n -c > "$file" || return 1 elif [ "$compress" = "2" ]; then file="$tmpdir/upload.tar.xz" tar -cf - -- "$@" | xz -c > "$file" || return 1 @@ -155,7 +155,7 @@ do_upload() { cd "$basedirname" if [ "$compress" = "1" ]; then file="$tmpdir/$basefilename.tar.gz" - tar -cf - -- "$basefilename" | gzip -c > "$file" || return 1 + tar -cf - -- "$basefilename" | gzip -n -c > "$file" || return 1 elif [ "$compress" = "2" ]; then file="$tmpdir/$basefilename.tar.xz" tar -cf - -- "$basefilename" | xz -c > "$file" || return 1 @@ -165,7 +165,7 @@ do_upload() { fi else if [ "$compress" = "1" ]; then - gzip -c -- "$file" > "$tmpdir/$basefilename.gz" || return 1 + gzip -n -c -- "$file" > "$tmpdir/$basefilename.gz" || return 1 file="$tmpdir/$basefilename.gz" elif [ "$compress" = "2" ]; then xz -c -- "$file" > "$tmpdir/$basefilename.xz" || return 1 -- cgit v1.2.3-24-g4f1b