mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-01-15 17:30:37 -06:00
add .exe
This commit is contained in:
parent
ede8733b9b
commit
da173cc720
@ -53,13 +53,13 @@ if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]:
|
|||||||
"irm christitus.com/win | iex"
|
"irm christitus.com/win | iex"
|
||||||
}
|
}
|
||||||
$powershellcmd = if (Get-Command pwsh -ErrorAction SilentlyContinue) {
|
$powershellcmd = if (Get-Command pwsh -ErrorAction SilentlyContinue) {
|
||||||
"pwsh"
|
"pwsh.exe"
|
||||||
} else {
|
} else {
|
||||||
"powershell"
|
"powershell.exe"
|
||||||
}
|
}
|
||||||
|
|
||||||
$processCmd = if (Get-Command wt.exe -ErrorAction SilentlyContinue) {
|
$processCmd = if (Get-Command wt.exe -ErrorAction SilentlyContinue) {
|
||||||
"wt"
|
"wt.exe"
|
||||||
} else {
|
} else {
|
||||||
$powershellcmd
|
$powershellcmd
|
||||||
}
|
}
|
||||||
|
@ -18,13 +18,13 @@ if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]:
|
|||||||
$script = "irm christitus.com/windev | iex"
|
$script = "irm christitus.com/windev | iex"
|
||||||
|
|
||||||
$powershellcmd = if (Get-Command pwsh -ErrorAction SilentlyContinue) {
|
$powershellcmd = if (Get-Command pwsh -ErrorAction SilentlyContinue) {
|
||||||
"pwsh"
|
"pwsh.exe"
|
||||||
} else {
|
} else {
|
||||||
"powershell"
|
"powershell.exe"
|
||||||
}
|
}
|
||||||
|
|
||||||
$processCmd = if (Get-Command wt.exe -ErrorAction SilentlyContinue) {
|
$processCmd = if (Get-Command wt.exe -ErrorAction SilentlyContinue) {
|
||||||
"wt"
|
"wt.exe"
|
||||||
} else {
|
} else {
|
||||||
$powershellcmd
|
$powershellcmd
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user