mirror of
https://github.com/trufflesecurity/trufflehog.git
synced 2024-11-10 07:04:24 +00:00
Don't attempt checking for updates on dev builds (#317)
This commit is contained in:
parent
d25638979f
commit
e8b55ad826
1 changed files with 4 additions and 0 deletions
4
main.go
4
main.go
|
@ -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 🐷")
|
||||
|
|
Loading…
Reference in a new issue