summaryrefslogtreecommitdiff
path: root/bin/weblogs-compress
diff options
context:
space:
mode:
Diffstat (limited to 'bin/weblogs-compress')
-rwxr-xr-xbin/weblogs-compress4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/weblogs-compress b/bin/weblogs-compress
index fbd810c..03c90fe 100755
--- a/bin/weblogs-compress
+++ b/bin/weblogs-compress
@@ -36,7 +36,9 @@ Dir.glob("*").each{ |client|
STDERR.puts("Not compressing #{filename}: Target exists.");
else
puts "Compressing #{filename}" if $VERBOSE
- system("gzip -9 #{filename}") or throw("system(gzip -9 #{filename}) failed.")
+ # the -f is necessary so that gzip will compress files even
+ # if they have multiple links
+ system("gzip -f -9 #{filename}") or throw("system(gzip -f -9 #{filename}) failed.")
end
}
}