Don't attempt checking for updates on dev builds (#317)

This commit is contained in:
Dustin Decker 2022-04-07 23:55:01 -07:00 committed by GitHub
parent d25638979f
commit e8b55ad826
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -116,6 +116,10 @@ func main() {
if !*noUpdate {
updateCfg.Fetcher = updater.Fetcher(version.BuildVersion)
}
if version.BuildVersion == "dev" {
updateCfg.Fetcher = nil
}
err := overseer.RunErr(updateCfg)
if err != nil {
logrus.WithError(err).Fatal("error occured with trufflehog updater 🐷")