Skip to content

Commit 76ee0ec

Browse files
committed
update: precheck of dump wildcard
1 parent dc8f943 commit 76ee0ec

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cmd/wildcard/wildcard.go

+6-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ var WildCardCmd = &cobra.Command{
2020
log.Warn("zone can't empty")
2121
return
2222
}
23-
printer.PrintResult(scanner.DumpWildCard(command.Opts.Zone), command.Opts.OutputFile)
23+
record := scanner.DumpWildCard(command.Opts.Zone)
24+
if record == nil || len(record) == 0 {
25+
log.Warnf("DumpWildCard Found Nothing")
26+
return
27+
}
28+
printer.PrintResult(record, command.Opts.OutputFile)
2429
},
2530
}

0 commit comments

Comments
 (0)