summaryrefslogtreecommitdiffstats
path: root/radar-base.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xradar-base.sh7
1 files changed, 1 insertions, 6 deletions
diff --git a/radar-base.sh b/radar-base.sh
index ee5fa00..886a6e9 100755
--- a/radar-base.sh
+++ b/radar-base.sh
@@ -167,12 +167,7 @@ time_to_update() {
}
fetch() {
- if [ -z "$1" ]; then
- # Default 5 minutes
- local timeToUpdate="$((5 * 60))"
- else
- local timeToUpdate="$1"
- fi
+ local timeToUpdate = ${"$1":-"$((5 * 60))"}
if time_to_update $timeToUpdate; then
record_timestamp