Skip to content

Commit

Permalink
Get empty string for output path
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonnam committed Jul 1, 2018
1 parent c560340 commit b2039c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Flint/spark/sparkCommandHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ let sparkCommandHandler: CommandHandler = { _, _, operandValues, optionValues in
outputPath = Path(fileURLWithPath: outputPathOptionValue)
} else {
print("Output Path [--output | -o]: ", terminator: "")
if let outputPathInput = readLine(), outputPathInput.count > 0 {
if let outputPathInput = readLine() {
outputPath = Path(fileURLWithPath: FileManager.default.currentDirectoryPath)[outputPathInput]
} else {
printError("Output path not specified")
Expand Down

0 comments on commit b2039c1

Please sign in to comment.