diff options
author | Peter Palfrader <peter@palfrader.org> | 2013-06-24 08:07:01 +0000 |
---|---|---|
committer | weasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede> | 2013-06-24 08:07:01 +0000 |
commit | 03c49298c3e0059d9af5f6404b5ab68f29d5a380 (patch) | |
tree | daf591a57c6ec2ae4e10f1bcdf2c6c505248409f | |
parent | 5d5d0adc9a68a73eee74f388debf95e6c69e2a94 (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
-rwxr-xr-x | create-temp | 6 |
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 |