summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2013-02-14 12:39:44 +0100
committerFlorian Pritz <bluewind@xinu.at>2013-02-14 12:39:44 +0100
commit287a2c9b931c701c5327e80e1fc49a83a3c6a742 (patch)
tree4b1a95aa56abb6608b4e033f88cb86ff92396e0e
parent4fb7457e611e583c649f2738b5ab8260f4bf4dfe (diff)
Don't save timestamp when gzipping
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r--fb.in6
1 files 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