mirror of
https://github.com/LSPosed/MagiskOnWSALocal.git
synced 2025-05-06 23:06:34 +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
|
||||
$ErrorActionPreference = 'stop'
|
||||
try { if (Get-Command $command) { RETURN $true } }
|
||||
Catch { Write-Host "$command does not exist"; RETURN $false }
|
||||
Catch { RETURN $false }
|
||||
Finally { $ErrorActionPreference = $oldPreference }
|
||||
} #end function test-CommandExists
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user