diff options
author | Steven Hall <Hallzy.18@gmail.com> | 2015-09-28 22:13:18 -0700 |
---|---|---|
committer | Steven Hall <Hallzy.18@gmail.com> | 2015-10-15 13:00:54 -0700 |
commit | 00f2a8c908e299d08e2efad038da25b2d5446976 (patch) | |
tree | dc2273fe62830da0e8f7fca8d6cc8c1ffbca344e /fetch.sh | |
parent | 42135ad00014387b6937242563b920a7cf640866 (diff) | |
download | git-sonar-00f2a8c908e299d08e2efad038da25b2d5446976.tar.gz git-sonar-00f2a8c908e299d08e2efad038da25b2d5446976.zip |
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.
Diffstat (limited to 'fetch.sh')
-rwxr-xr-x | fetch.sh | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |