diff options
-rwxr-xr-x | bin/weblogs-compress | 4 |
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 } } |