mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-11-14 22:55:52 -06: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,
|
[switch]$SkipPreprocessing,
|
||||||
[string]$Arguments
|
[string]$Arguments
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if ((Get-Item ".\winutil.ps1" -ErrorAction SilentlyContinue).IsReadOnly) {
|
||||||
|
Remove-Item ".\winutil.ps1" -Force
|
||||||
|
}
|
||||||
|
|
||||||
$OFS = "`r`n"
|
$OFS = "`r`n"
|
||||||
$scriptname = "winutil.ps1"
|
$scriptname = "winutil.ps1"
|
||||||
$workingdir = $PSScriptRoot
|
$workingdir = $PSScriptRoot
|
||||||
|
Loading…
Reference in New Issue
Block a user