summaryrefslogtreecommitdiff
path: root/create-temp
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2013-06-24 08:07:01 +0000
committerweasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede>2013-06-24 08:07:01 +0000
commit03c49298c3e0059d9af5f6404b5ab68f29d5a380 (patch)
treedaf591a57c6ec2ae4e10f1bcdf2c6c505248409f /create-temp
parent5d5d0adc9a68a73eee74f388debf95e6c69e2a94 (diff)
only update yesterday link if yesterday exists
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@626 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
Diffstat (limited to 'create-temp')
-rwxr-xr-xcreate-temp6
1 files 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