diff --git a/Compile.ps1 b/Compile.ps1 index c9d435558..b7a61558b 100644 --- a/Compile.ps1 +++ b/Compile.ps1 @@ -4,6 +4,11 @@ param ( [switch]$SkipPreprocessing, [string]$Arguments ) + +if ((Get-Item ".\winutil.ps1" -ErrorAction SilentlyContinue).IsReadOnly) { + Remove-Item ".\winutil.ps1" -Force +} + $OFS = "`r`n" $scriptname = "winutil.ps1" $workingdir = $PSScriptRoot