mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-11-24 11:55:31 +00:00
[fix compile] winutil used by another process (#2680)
* fix winutil used by another process - remove winutil.ps1 if it is readonly (also works if another process is using it) to minimize failed compiles. * fix action error * Oops, typo * make it more compact
This commit is contained in:
parent
95db85f791
commit
473f04ddc5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user