Bugfix folder not found
All checks were successful
release-tag / release-image (push) Successful in 1m40s
All checks were successful
release-tag / release-image (push) Successful in 1m40s
This commit is contained in:
3
main.go
3
main.go
@@ -707,6 +707,9 @@ func fetchAndSave(client *http.Client, t target, outDir string) error {
|
||||
func importBlocklists() error {
|
||||
client := &http.Client{Timeout: 60 * time.Second}
|
||||
t := target{Name: "Catalog", URL: "http://importer:8080/lists.json"}
|
||||
if err := os.MkdirAll("./lists/", 0o755); err != nil {
|
||||
fmt.Println("creating output dir", err)
|
||||
}
|
||||
if err := fetchAndSave(client, t, "./lists/"); err != nil {
|
||||
log.Printf("ERROR %s → %v", t.URL, err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user