From b8797284031edbfd4c22f19f4878418cf4b2ec10 Mon Sep 17 00:00:00 2001 From: Steven Hall Date: Fri, 16 Oct 2015 11:31:21 -0700 Subject: Made changes recommeneded by @michaeldfallen in fetch.sh "if" now checks for $@ instead of just $1 in radar-base.sh there is now a parameter expansion on line 170 instead of the if statements. in git-radar, now there is a shift, and a regex check that the next value is a number. If the next value after --fetch_t is not a number, an error is echo'd and it resorts to the default behaviour of 5 minutes. --- fetch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fetch.sh') diff --git a/fetch.sh b/fetch.sh index a3fc571..877fa7b 100755 --- a/fetch.sh +++ b/fetch.sh @@ -10,7 +10,7 @@ dot="$(cd "$(dirname "$([ -L "$0" ] && $READLINK_CMD -f "$0" || echo "$0")")"; p source $dot/radar-base.sh -if [[ -z "$1" ]]; then +if [[ -z "$@" ]]; then fetch; else fetch $1; -- cgit v1.2.3