summaryrefslogtreecommitdiff
path: root/watchdog.go
diff options
context:
space:
mode:
Diffstat (limited to 'watchdog.go')
-rw-r--r--watchdog.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/watchdog.go b/watchdog.go
index 1dbb2f4..edf2358 100644
--- a/watchdog.go
+++ b/watchdog.go
@@ -2,6 +2,7 @@ package repolist
import (
"fmt"
+ "os"
"time"
"go.wit.com/log"
@@ -26,8 +27,8 @@ func (r *RepoList) Watchdog(f func()) {
var i int = delay
MyTicker(1*time.Second, "newScan()", func() {
i += 1
- // check if the checkbox is checked
- if !me.autoScan {
+ // check if the env var is set to autoscan
+ if os.Getenv("REPO_AUTO_SCAN") != "" {
if i < delay {
i = delay
}