From 26ba8df52287d493a063da4a5b93455cb4cb5b82 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 12 Jun 2018 23:35:04 +0200 Subject: Start uucico from cache-media --- odin/strm/cache_media | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'odin') diff --git a/odin/strm/cache_media b/odin/strm/cache_media index 796bccf0..c34e20fe 100644 --- a/odin/strm/cache_media +++ b/odin/strm/cache_media @@ -22,6 +22,8 @@ function notmuch { done } +acted=false + while { results=$(notmuch search --sort=oldest-first --output=messages "( tag:inbox AND is:media AND is:unread ) AND NOT ( tag:new OR tag:killed OR tag:failed OR tag:cached )") ids=("${(f)results}") @@ -34,5 +36,11 @@ while { for id (${ids}); do systemctl --user start $(systemd-escape --template=download-youtube@.service ${id}) + + acted=true done done + +if ${acted}; then + systemctl --no-block start uucico@hel.service +fi -- cgit v1.2.3