From 53f9837e6a48f8cc0da9b63d3d0054f15cb974ed Mon Sep 17 00:00:00 2001 From: blotus Date: Wed, 11 Aug 2021 14:55:51 +0200 Subject: [PATCH] set hubBranch to master if not provided in the configuration and if crowdsec has been built without version information (#884) --- cmd/crowdsec-cli/utils.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/crowdsec-cli/utils.go b/cmd/crowdsec-cli/utils.go index e248ffc50..45bcdf6f8 100644 --- a/cmd/crowdsec-cli/utils.go +++ b/cmd/crowdsec-cli/utils.go @@ -90,6 +90,7 @@ func setHubBranch() error { cwhub.HubBranch = "master" } else if csVersion == "" { log.Warningf("Crowdsec version is '', using master branch for the hub") + cwhub.HubBranch = "master" } else { log.Warnf("Crowdsec is not the latest version. Current version is '%s' and the latest stable version is '%s'. Please update it!", csVersion, latest) log.Warnf("As a result, you will not be able to use parsers/scenarios/collections added to Crowdsec Hub after CrowdSec %s", latest)