Handle OneShot tasks only on Windows
This commit is contained in:
parent
972fd5fd43
commit
0259a55c79
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ $null = New-Module {
|
|||
Set-PSDebug -Trace 1;
|
||||
}
|
||||
|
||||
if ($null -ne (Get-OneShotTask)) {
|
||||
if ($IsWindows -and ($null -ne (Get-OneShotTask))) {
|
||||
$taskPending = $true;
|
||||
[switch] $NonInteractive = $true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue