Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
steve02081504 committed Dec 12, 2023
1 parent b677e1f commit a9b5b9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ps2exe.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ function ps2exe {
}
function ReadScriptFile($File) {
Write-Host "Reading file $([System.IO.Path]::GetFileName($File)) size $((Get-Item $File).Length) bytes"
$Content = Get-Content -LiteralPath $inputFile -Encoding UTF8 -ErrorAction SilentlyContinue
$Content = Get-Content -LiteralPath $File -Encoding UTF8 -ErrorAction SilentlyContinue
if (-not $Content) {
Write-Error "No data found. May be read error or file protected."
return
Expand Down

0 comments on commit a9b5b9e

Please sign in to comment.