Ice3man543 2020-04-04 19:06:30 +05:30
parent 719669b91a
commit ea9c250a8d
1 changed files with 3 additions and 1 deletions

View File

@ -94,6 +94,7 @@ func (r *Runner) RunEnumeration() {
if err != nil {
gologger.Fatalf("Could not evaluate template path '%s': %s\n", r.options.Templates, err)
}
for _, match := range matches {
r.processTemplate(match)
}
@ -103,7 +104,8 @@ func (r *Runner) RunEnumeration() {
func (r *Runner) processTemplate(templatePath string) {
template, err := templates.ParseTemplate(templatePath)
if err != nil {
gologger.Fatalf("Could not parse template file '%s': %s\n", templatePath, err)
gologger.Errorf("Could not parse template file '%s': %s\n", templatePath, err)
return
}
// Handle a list of hosts as argument