mirror of
https://github.com/LSPosed/MagiskOnWSALocal.git
synced 2025-05-06 14:56:36 +08:00
Remove the warning that the installation check command was not found
This commit is contained in:
parent
58e17da60a
commit
c889b66e93
@ -41,7 +41,7 @@ Function Test-CommandExists {
|
|||||||
$oldPreference = $ErrorActionPreference
|
$oldPreference = $ErrorActionPreference
|
||||||
$ErrorActionPreference = 'stop'
|
$ErrorActionPreference = 'stop'
|
||||||
try { if (Get-Command $command) { RETURN $true } }
|
try { if (Get-Command $command) { RETURN $true } }
|
||||||
Catch { Write-Host "$command does not exist"; RETURN $false }
|
Catch { RETURN $false }
|
||||||
Finally { $ErrorActionPreference = $oldPreference }
|
Finally { $ErrorActionPreference = $oldPreference }
|
||||||
} #end function test-CommandExists
|
} #end function test-CommandExists
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user