commit 8d95f6eea1b2cc4dd6d900d9d6ca9da324cbdf22
parent af818b134f81cb25fbc6bd1c969c39f7920500ef
Author: Sebastiano Tronto <sebastiano@tronto.net>
Date: Fri, 10 May 2024 14:40:24 +0200
Avoid keeping unnecessary files in feed
Diffstat:
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/feed b/feed
@@ -9,7 +9,6 @@
dir=$HOME/box/sfeed
feeddir=$dir/urls
destdir=$dir/new
-olddir=$dir/old
readdir=$dir/last
menu="dmenu -l 20 -i"
urlopener=open-url
@@ -82,9 +81,7 @@ case "$1" in
show | selectmenu
;;
clear)
- d="$olddir/$(date +'%Y-%m-%d-%H-%M-%S')"
- mkdir "$d"
- mv "$destdir"/* "$d/"
+ rm -r "$destdir"/*
;;
show)
show