summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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