Skip to content

Commit

Permalink
change name out output filename var
Browse files Browse the repository at this point in the history
  • Loading branch information
c7bercat committed Dec 6, 2022
1 parent ecc9bd9 commit fb6c19c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions aftermath/Command.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
class Command {
static var options: Options = []
static var analysisDir: String? = nil
static var outputDir: String = "/tmp"
static var outputLocation: String = "/tmp"
static var collectDirs: [String] = []
static let version: String = "1.2.0"

Expand Down Expand Up @@ -50,7 +50,7 @@ class Command {
case "-o", "--output":
if let index = args.firstIndex(of: arg) {
Self.options.insert(.output)
Self.outputDir = args[index + 1]
Self.outputLocation = args[index + 1]
}
case "--analyze":
if let index = args.firstIndex(of: arg) {
Expand Down Expand Up @@ -115,7 +115,7 @@ class Command {
mainModule.log("Finished analysis module")

// Move analysis directory to output direcotry
CaseFiles.MoveTemporaryCaseDir(outputLocation: self.outputDir, isAnalysis: true)
CaseFiles.MoveTemporaryCaseDir(outputLocation: self.outputLocation, isAnalysis: true)

// End Aftermath
mainModule.log("Aftermath Finished")
Expand Down Expand Up @@ -179,7 +179,7 @@ class Command {
mainModule.log("Finished running Aftermath collection")

// Copy from cache to output
CaseFiles.MoveTemporaryCaseDir(outputLocation: self.outputDir, isAnalysis: false)
CaseFiles.MoveTemporaryCaseDir(outputLocation: self.outputLocation, isAnalysis: false)

// End Aftermath
mainModule.log("Aftermath Finished")
Expand Down

0 comments on commit fb6c19c

Please sign in to comment.