diff options
author | Peter Palfrader <peter@palfrader.org> | 2013-06-13 14:25:45 +0000 |
---|---|---|
committer | weasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede> | 2013-06-13 14:25:45 +0000 |
commit | 5d5d0adc9a68a73eee74f388debf95e6c69e2a94 (patch) | |
tree | 3097676b11306c97dad0e6afba8a7b9f027723ed /create-temp | |
parent | c6b1bb22730ae1a28ca4d1ebe56b48e1a87d442a (diff) |
add yesterday link
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@625 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
Diffstat (limited to 'create-temp')
-rwxr-xr-x | create-temp | 4 |
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" |