aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rwxr-xr-xmodules/archupdates4
-rwxr-xr-xmodules/voidupdates4
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