From 03c49298c3e0059d9af5f6404b5ab68f29d5a380 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Mon, 24 Jun 2013 08:07:01 +0000 Subject: only update yesterday link if yesterday exists git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@626 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede --- create-temp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/create-temp b/create-temp index 718ea3a..a12b7fe 100755 --- a/create-temp +++ b/create-temp @@ -46,5 +46,7 @@ fi rm -f "$TARGET" ln -s "$BASE/$TODAY" "$TARGET" -rm -f "$BASE/yesterday" -ln -s "$YESTERDAY" "$BASE/yesterday" +if [ -e "$BASE/$YESTERDAY" ]; then + rm -f "$BASE/yesterday" + ln -s "$YESTERDAY" "$BASE/yesterday" +fi -- cgit v1.2.3