Skip to content

Commit

Permalink
Merge pull request #101 from T0pCyber/seandev
Browse files Browse the repository at this point in the history
Added -Depth modifier to Out-MultipleFileType JSON
  • Loading branch information
T0pCyber authored Mar 22, 2023
2 parents 6b45001 + e049af7 commit 39e6ec7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Hawk/internal/functions/Out-MultipleFileType.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -191,13 +191,13 @@ Function Out-MultipleFileType {
Out-LogFile ("Appending Data to " + $filename)

# Write it out to json making sture to append
$AllObject | ConvertTo-Json | Out-File -FilePath $filename -Append
$AllObject | ConvertTo-Json -Depth 100 | Out-File -FilePath $filename -Append
}

# Otherwise overwrite
else {
Out-LogFile ("Writing Data to " + $filename)
$AllObject | ConvertTo-Json | Out-File -FilePath $filename
$AllObject | ConvertTo-Json -Depth 100 | Out-File -FilePath $filename
}

# If notice is set we need to write the file name to _Investigate.txt
Expand Down

0 comments on commit 39e6ec7

Please sign in to comment.