From 5d5d0adc9a68a73eee74f388debf95e6c69e2a94 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Thu, 13 Jun 2013 14:25:45 +0000 Subject: add yesterday link git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@625 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede --- create-temp | 4 ++++ 1 file changed, 4 insertions(+) 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" -- cgit v1.2.3