This commit is contained in:
MyDrift 2024-08-21 23:53:40 +02:00
parent ede8733b9b
commit da173cc720
2 changed files with 6 additions and 6 deletions

View File

@ -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
} }

View File

@ -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
} }