1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2025-08-12 22:10:07 +02:00

🐛 Avoid duplicate verbose mode output

This commit is contained in:
2023-01-31 17:32:31 +01:00
parent 2eda8d6382
commit 3ceded3456

View File

@@ -115,14 +115,12 @@ class RealShell: ShellProtocol {
)! )!
if Log.shared.verbosity == .cli { if Log.shared.verbosity == .cli {
var args = task.arguments var args = task.arguments ?? []
let last: String = "\"" + (args?.popLast() ?? "") + "\"" let last = "\"" + (args.popLast() ?? "") + "\""
let concat = [self.launchPath] + task.arguments! + [last]
let command = concat.joined(separator: " ")
var log = """ var log = """
<~~~~~~~~~~~~~~~~~~~~~~~ <~~~~~~~~~~~~~~~~~~~~~~~
$ \(command) $ \(([self.launchPath] + args + [last]).joined(separator: " "))
[OUT]: [OUT]:
\(stdOut) \(stdOut)