Minor fix

master
Ice3man543 2019-12-04 21:22:17 +05:30
parent d940f8deb6
commit 1e0f666618
1 changed files with 6 additions and 4 deletions

View File

@ -157,10 +157,12 @@ func (r *Runner) EnumerateSingleDomain(domain, output string) error {
if output != "" {
// If the output format is json, append .json
// else append .txt
if r.options.JSON {
output = output + ".json"
} else {
output = output + ".txt"
if r.options.OutputDirectory != "" {
if r.options.JSON {
output = output + ".json"
} else {
output = output + ".txt"
}
}
file, err := os.Create(output)