summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2006-10-30 10:45:43 +0000
committerweasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede>2006-10-30 10:45:43 +0000
commit182db49f9009f361473da8c27b100be38dc84992 (patch)
treee13ea34c9518c6c16e40927d07a7e55fc8124fe2 /bin
parent5b06dfc583e7ee4266be46ccf46ca5d784524a91 (diff)
Use -f to gzip so that it compresses files with more than one link
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@240 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
Diffstat (limited to 'bin')
-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
}
}