From 1b4be457c9a8cc08951e2d3fd080ea63863a9280 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 10 Sep 2018 11:59:25 +0200 Subject: Make delta & interval configurable --- odin/strm/rss_staggered | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'odin/strm') diff --git a/odin/strm/rss_staggered b/odin/strm/rss_staggered index 30abb939..2f3bb997 100644 --- a/odin/strm/rss_staggered +++ b/odin/strm/rss_staggered @@ -1,7 +1,10 @@ #!@zsh@/bin/zsh -delta_t=20 -interval=3600 +typeset -A opts +zparseopts -A opts -M -- -delta: d:=-delta -interval: i:=-interval + +delta_t=${opts[--delta]:-20} +interval=${opts[--interval]:-3600} staggerFile=~/.rss-stagger -- cgit v1.2.3