From 21f6993243a662615e092f7bc9c2b0558bf03cfc Mon Sep 17 00:00:00 2001 From: keybuk Date: Wed, 6 Oct 2004 17:18:55 +0000 Subject: [PATCH] move the log if a new one exists git-svn-id: svn+ssh://svn.debian.org/svn/planet-debian/trunk@8 c2f067bf-98e0-425f-9c98-e76020cfa380 --- cron/30log | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cron/30log b/cron/30log index 8a10450..147b5a6 100755 --- a/cron/30log +++ b/cron/30log @@ -2,6 +2,8 @@ cd /org/planet.debian.org/log -rm -f planet.log.0 -mv -f planet.log planet.log.0 -mv new-planet.log planet.log +if [ -f new-planet.log ]; then + rm -f planet.log.0 + [ -f planet.log ] && mv planet.log planet.log.0 + mv new-planet.log planet.log +fi -- 2.39.2