mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-01-17 18:27:42 -06:00
Add Run switch to Run winutil automatically after compilation
This commit is contained in:
parent
dddc1cac14
commit
b8d120b4ee
@ -1,5 +1,6 @@
|
|||||||
param (
|
param (
|
||||||
[switch]$Debug
|
[switch]$Debug,
|
||||||
|
[switch]$Run
|
||||||
)
|
)
|
||||||
$OFS = "`r`n"
|
$OFS = "`r`n"
|
||||||
$scriptname = "winutil.ps1"
|
$scriptname = "winutil.ps1"
|
||||||
@ -107,3 +108,7 @@ else {
|
|||||||
|
|
||||||
Set-Content -Path $scriptname -Value ($script_content -join "`r`n") -Encoding ascii
|
Set-Content -Path $scriptname -Value ($script_content -join "`r`n") -Encoding ascii
|
||||||
Write-Progress -Activity "Compiling" -Completed
|
Write-Progress -Activity "Compiling" -Completed
|
||||||
|
|
||||||
|
if ($run){
|
||||||
|
Start-Process -FilePath "powershell" -ArgumentList ".\$scriptname"
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user