update(pwsh): update Enable-SshAgent for new "sudo" introduced in 24H2
This commit is contained in:
parent
4124536852
commit
16903271a5
1 changed files with 1 additions and 1 deletions
|
@ -139,7 +139,7 @@ function Enable-SshAgent {
|
|||
.OUTPUTS
|
||||
no outputs
|
||||
#>
|
||||
sudo Set-Service -Name ssh-agent -StartupType Manual && Start-Service ssh-agent
|
||||
sudo run pwsh -c "Set-Service -Name ssh-agent -StartupType Manual && Start-Service ssh-agent"
|
||||
}
|
||||
# auto start ssh-agent and do ssh-add
|
||||
function Invoke-SshAdd {
|
||||
|
|
Loading…
Reference in a new issue