aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBaitinq <30861839+Baitinq@users.noreply.github.com>2019-11-06 13:59:25 +0000
committerGitHub <noreply@github.com>2019-11-06 13:59:25 +0000
commit23767a965b9de481342849163fc2cfe5b88562ef (patch)
treec68e9762534b8b5c09a5d01ebc57900033e3017b /modules
parent521863db533b6ed03bd941c302126cdddab893e2 (diff)
parent8f5c0b93c6d11760745bc2996909af728dce8592 (diff)
Merge pull request #12 from thytom/delays
Added delays to the updates modules
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