about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2022-08-11 08:48:02 -0500
committerCase Duckworth2022-08-11 08:48:02 -0500
commite0faf55ef2b7d6a11e517d91ee5b0ab8b3961eb5 (patch)
tree2c1c4c6bc160083f0eb9a8f7c875194ecabc9d42
parentAdd ass (diff)
downloadsfeed-e0faf55ef2b7d6a11e517d91ee5b0ab8b3961eb5.tar.gz
sfeed-e0faf55ef2b7d6a11e517d91ee5b0ab8b3961eb5.zip
Actually.. move files
-rwxr-xr-xrunsfeed4
1 files changed, 2 insertions, 2 deletions
diff --git a/runsfeed b/runsfeed index 2068434..90c128d 100755 --- a/runsfeed +++ b/runsfeed
@@ -151,8 +151,8 @@ archive() ( # sfeed_archive AGE FEED ...
151 for feed; do 151 for feed; do
152 awk -v old="$(($(date +%s) - (age * 24 * 3600)))" \ 152 awk -v old="$(($(date +%s) - (age * 24 * 3600)))" \
153 -F '\t' 'int($1) > old' <"$feed" >"$feed.new" 153 -F '\t' 'int($1) > old' <"$feed" >"$feed.new"
154 echo mv "$feed" "$old/${feed##*/}" && 154 mv "$feed" "$old/${feed##*/}" &&
155 echo mv "$feed.new" "$feed" 155 mv "$feed.new" "$feed"
156 done 156 done
157) 157)
158 158