diff options
author | Alvaro Herrera | 2009-09-30 00:19:10 +0000 |
---|---|---|
committer | Alvaro Herrera | 2009-09-30 00:19:10 +0000 |
commit | 509df8eb62ef6dfb65d169e54e1495ca0ae65e15 (patch) | |
tree | 5d3e3b0d6c61c64b3f1541875898c7869c6871f3 | |
parent | 9d08c7ea440fbfcacb06472498fba880cde9e5a7 (diff) |
Restore downloadable mboxes from already-compressed source mboxes.
git-svn-id: file:///Users/dpage/pgweb/svn-repo/trunk@2571 8f5c7a92-453e-0410-a47f-ad33c8a6b003
-rwxr-xr-x | archives/bin/mk-mhonarc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archives/bin/mk-mhonarc b/archives/bin/mk-mhonarc index 775e22ba..1641b82b 100755 --- a/archives/bin/mk-mhonarc +++ b/archives/bin/mk-mhonarc @@ -110,8 +110,8 @@ process_one_mbox() { mkdir mbox fi gzipped=mbox/${list}.${ydashm}.gz - if [ `basename $mbox` != `basename $mbox .gz` ]; then - cp $path $gzipped + if [ -f $path.gz ]; then + cp $path.gz $gzipped else gzip $path -f -c > $gzipped fi |