From 00f2a8c908e299d08e2efad038da25b2d5446976 Mon Sep 17 00:00:00 2001 From: Steven Hall Date: Mon, 28 Sep 2015 22:13:18 -0700 Subject: Added feature that let's you specify how often to fetch with --fetch_t you can specify how many seconds to wait before auto fetching. using the --fetch option gives you the default of 5 minutes still. "--fetch_t 45" for example would fetch every 45 seconds. --- fetch.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'fetch.sh') diff --git a/fetch.sh b/fetch.sh index 37601e3..a3fc571 100755 --- a/fetch.sh +++ b/fetch.sh @@ -10,4 +10,8 @@ dot="$(cd "$(dirname "$([ -L "$0" ] && $READLINK_CMD -f "$0" || echo "$0")")"; p source $dot/radar-base.sh -fetch; +if [[ -z "$1" ]]; then + fetch; +else + fetch $1; +fi -- cgit v1.2.3