From 8f5c0b93c6d11760745bc2996909af728dce8592 Mon Sep 17 00:00:00 2001 From: Manuel Palenzuela Date: Wed, 6 Nov 2019 13:57:07 +0000 Subject: [PATCH] Added delays to the updates modules --- modules/archupdates | 4 +++- modules/voidupdates | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/archupdates b/modules/archupdates index ad8b405..30ee7a3 100755 --- a/modules/archupdates +++ b/modules/archupdates @@ -21,4 +21,6 @@ get_updates() echo "$PREFIX$updates" } -get_updates +if [ $(( 10#$(date '+%M') % 3 )) -eq 0 ] && [ $(( 10#$(date '+%S') )) -eq 5 ]; then + get_updates +fi diff --git a/modules/voidupdates b/modules/voidupdates index 229fd42..9411637 100755 --- a/modules/voidupdates +++ b/modules/voidupdates @@ -13,4 +13,6 @@ get_updates() echo "$PREFIX$updates" } -get_updates +if [ $(( 10#$(date '+%M') % 3 )) -eq 0 ] && [ $(( 10#$(date '+%S') )) -eq 5 ]; then + get_updates +fi