some correction
This commit is contained in:
@@ -56,6 +56,9 @@ func readConfigAt(path string) (*OptionsEntry, error) {
|
||||
configContent, err = io.ReadAll(os.Stdin)
|
||||
} else if path == "env" && subscriptionLink != "" {
|
||||
configContentResponse, err := http.Get(subscriptionLink)
|
||||
if err != nil {
|
||||
log.Warn("Cannot fetch subscription: ", err)
|
||||
}
|
||||
if err != nil || configContentResponse.StatusCode != 200 {
|
||||
if subscriptionCache != "" {
|
||||
log.Info("using previous subscription cache")
|
||||
|
||||
Reference in New Issue
Block a user