summaryrefslogtreecommitdiff
path: root/create-temp
diff options
context:
space:
mode:
Diffstat (limited to 'create-temp')
-rwxr-xr-xcreate-temp4
1 files changed, 4 insertions, 0 deletions
diff --git a/create-temp b/create-temp
index 982e827..718ea3a 100755
--- a/create-temp
+++ b/create-temp
@@ -23,6 +23,7 @@
set -e
+YESTERDAY="$(date -d '1 day ago' '+%F')"
TODAY="$(date '+%F')"
BASE="$HOME/.temp"
TARGET="$HOME/tmp"
@@ -44,3 +45,6 @@ if [ "${BASE##$target_dir/}" != "$BASE" ]; then
fi
rm -f "$TARGET"
ln -s "$BASE/$TODAY" "$TARGET"
+
+rm -f "$BASE/yesterday"
+ln -s "$YESTERDAY" "$BASE/yesterday"