diff --git a/findNext.go b/findNext.go index f9d7dd5..14d3558 100644 --- a/findNext.go +++ b/findNext.go @@ -125,7 +125,10 @@ func findNext() bool { return true } if findCounter == 0 { - log.Info("NOTHING TO UPDATE. findCounter =", findCounter) + log.Info("NOTHING TO UPDATE. findCounter =", findCounter, "found len =", me.found.Len()) + if me.found.Len() == 0 { + okExit("") + } } else { log.Info("me.current is nil findCounter =", findCounter, "so set findFix =", findFix) } diff --git a/main.go b/main.go index 6436776..99ba524 100644 --- a/main.go +++ b/main.go @@ -122,7 +122,7 @@ func main() { // check if nothing is found an exit? if me.found.Len() == 0 { log.Info("nothing found to publish") - os.Exit(0) + okExit("found nothing") } } me.Enable()