Skip to content

Commit aa32573

Browse files
committed
Quote solution file path in test process command
1 parent 53bc735 commit aa32573

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

buildpacks/dotnet/src/main.rs

+7-5
Original file line numberDiff line numberDiff line change
@@ -214,11 +214,13 @@ impl Buildpack for DotnetBuildpack {
214214
ExecutionEnvironment::Test => {
215215
let mut args = vec![format!(
216216
"dotnet test {}",
217-
solution
218-
.path
219-
.file_name()
220-
.expect("Solution to have a file name")
221-
.to_string_lossy()
217+
shell_words::quote(
218+
&solution
219+
.path
220+
.file_name()
221+
.expect("Solution to have a file name")
222+
.to_string_lossy()
223+
)
222224
)];
223225
if let Some(configuration) = buildpack_configuration.build_configuration {
224226
args.push(format!("--configuration {configuration}"));

0 commit comments

Comments
 (0)