mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-07-26 23:00:20 -05:00
fix compile run always starting ps5 (#2165)
This commit is contained in:
@ -103,5 +103,11 @@ Set-Content -Path $scriptname -Value ($script_content -join "`r`n") -Encoding as
|
|||||||
Write-Progress -Activity "Compiling" -Completed
|
Write-Progress -Activity "Compiling" -Completed
|
||||||
|
|
||||||
if ($run){
|
if ($run){
|
||||||
|
try {
|
||||||
|
Start-Process -FilePath "pwsh" -ArgumentList ".\$scriptname"
|
||||||
|
}
|
||||||
|
catch {
|
||||||
Start-Process -FilePath "powershell" -ArgumentList ".\$scriptname"
|
Start-Process -FilePath "powershell" -ArgumentList ".\$scriptname"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
Reference in New Issue
Block a user