Skip to content

Commit 41453ff

Browse files
Update decodeAndWrite.ps1
1 parent b14f6a3 commit 41453ff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/decodeAndWrite.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,5 @@ if($encodedValue -eq "" -or $null -eq $encodedValue) {
2828
}
2929

3030
$decodedValue = [System.Convert]::FromBase64String($encodedValue)
31-
Set-Content $outputPath -Value $decodedValue -Encoding Byte
31+
$targetFullPath = Join-Path $PWD -ChildPath $outputPath
32+
[System.IO.File]::WriteAllBytes($targetFullPath, $decodedValue)

0 commit comments

Comments
 (0)