Skip to content
This repository has been archived by the owner on Jul 26, 2023. It is now read-only.

Commit

Permalink
Quote arguments to mklink
Browse files Browse the repository at this point in the history
This prevents breaks when the linked paths contain spaces, commas or other characters.
  • Loading branch information
AArnott committed May 22, 2020
1 parent 6d120a6 commit ecbb92c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion azure-pipelines/artifacts/_stage_all.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function Create-SymbolicLink {
if ($IsMacOS -or $IsLinux) {
ln $Target $Link | Out-Null
} else {
cmd /c mklink $Link $Target | Out-Null
cmd /c "mklink `"$Link`" `"$Target`"" | Out-Null
}
}

Expand Down

0 comments on commit ecbb92c

Please sign in to comment.