Skip to content

Commit

Permalink
made bash function static deleted initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
mattbenyo committed Dec 1, 2021
1 parent 0da08ef commit b987c1e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aftermath/Aftermath.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Aftermath {
}

//function for calling bash commands
func shell(_ command: String) -> String {
static func shell(_ command: String) -> String {
let task = Process()
let pipe = Pipe()

Expand Down
1 change: 1 addition & 0 deletions aftermath/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ print(#"""
let argManager = ArgManager(suppliedArgs:CommandLine.arguments)

let caseHandler = CaseHandler()

caseHandler.log("Aftermath Started")

// System Recon - Sal
Expand Down
2 changes: 1 addition & 1 deletion unifiedlogs/UnifiedLogModule.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class UnifiedLogModule {
self.caseHandler.log("Filtering for \(filtername) events...")

let command = "log show -info -backtrace -debug -loss -signpost -predicate " + "'" + filter + "'"
let output = aftermath.shell("\(command)")
let output = Aftermath.shell("\(command)")

if output != "" {
let logfile = self.caseHandler.createNewCaseFile(dirUrl: unifiedLogDir, filename: filtername)
Expand Down

0 comments on commit b987c1e

Please sign in to comment.