Skip to content

Commit 26a3acc

Browse files
committed
Fix variable persistence when value includes a single quote
1 parent ccb8e49 commit 26a3acc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/artifacts/Variables.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Get-ChildItem "$PSScriptRoot/../variables" |% {
2626

2727
if ($value) {
2828
# We got something, so wrap it with quotes so it's treated like a literal value.
29-
$value = "'$value'"
29+
$value = "'" + $value.Replace("'", "''") + "'"
3030
}
3131
}
3232

0 commit comments

Comments
 (0)