Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ShiranAvidov committed Sep 3, 2023
1 parent 9a020e3 commit bc53cb8
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions scripts/windows/agent.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,12 @@ function Get-EnableCursor {
[hashtable]$FuncArgs
)

$local:Err = Test-AreFuncArgsExist $FuncArgs @('AgentArgs')
if ($Err.Count -ne 0) {
return
}

$local:AgentArgs = $FuncArgs.AgentArgs

foreach ($Arg in $AgentArgs) {
switch -Regex ($Arg) {
--enable-cursor {
"`$script:EnableCursor = `$true"
$script:EnableCursor = $true
return
}
}
Expand Down

0 comments on commit bc53cb8

Please sign in to comment.