diff options
author | Michael Allen <michael@michaelallen.io> | 2015-10-21 11:59:16 +0100 |
---|---|---|
committer | Michael Allen <michael@michaelallen.io> | 2015-10-21 11:59:16 +0100 |
commit | 984ff133d360222906ff20f7431be9a70a212539 (patch) | |
tree | 611ef993dd3c37aeb510495ce58ddcb41563805c /radar-base.sh | |
parent | 13110aea3cf060d698a195ab123d912f42114f5f (diff) | |
download | git-sonar-984ff133d360222906ff20f7431be9a70a212539.tar.gz git-sonar-984ff133d360222906ff20f7431be9a70a212539.zip |
Fix tests broken by FETCH_TIME now being pushed in
Diffstat (limited to 'radar-base.sh')
-rwxr-xr-x | radar-base.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/radar-base.sh b/radar-base.sh index 0f4a35a..099debd 100755 --- a/radar-base.sh +++ b/radar-base.sh @@ -183,9 +183,10 @@ time_now() { } time_to_update() { + last_time_updated="${1:-$FETCH_TIME}" if is_repo; then local timesincelastupdate="$(($(time_now) - $(timestamp)))" - if (( $timesincelastupdate > $1 )); then + if (( $timesincelastupdate > $last_time_updated )); then # time to update return 0 (which is true) return 0 else |