Skip to content

Commit 0a0f0ec

Browse files
committed
fix: escape linter initializer in logs
1 parent 89064c1 commit 0a0f0ec

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/linter.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,15 @@ impl Linter {
181181
.map(|arg| arg.replace("{{DRYRUN}}", dry_run))
182182
.collect();
183183
let (program, arguments) = init_commands.split_at(1);
184-
debug!("Running: {} {}", program[0], arguments.join(" "));
184+
debug!(
185+
"Running: {} {}",
186+
program[0],
187+
arguments
188+
.iter()
189+
.map(|i| format!("'{i}'"))
190+
.collect::<Vec<_>>()
191+
.join(" ")
192+
);
185193
let status = Command::new(&program[0])
186194
.args(arguments)
187195
.current_dir(self.get_config_dir())

0 commit comments

Comments
 (0)