Skip to content

Commit

Permalink
Move Installer for OpenSSH to a runspace (#3117)
Browse files Browse the repository at this point in the history
  • Loading branch information
DeveloperDurp authored Jan 10, 2025
1 parent 02f0f85 commit fa9dbca
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion functions/public/Invoke-WPFButton.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@ function Invoke-WPFButton {
"MicrowinScratchDirBT" {Invoke-ScratchDialog}
"WPFWinUtilInstallPSProfile" {Invoke-WinUtilInstallPSProfile}
"WPFWinUtilUninstallPSProfile" {Invoke-WinUtilUninstallPSProfile}
"WPFWinUtilSSHServer" {Invoke-WinUtilSSHServer}
"WPFWinUtilSSHServer" {Invoke-WPFSSHServer}
}
}
17 changes: 17 additions & 0 deletions functions/public/Invoke-WPFSSHServer.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
function Invoke-WPFSSHServer {
<#
.SYNOPSIS
Invokes the OpenSSH Server install in a runspace
#>

Invoke-WPFRunspace -DebugPreference $DebugPreference -ScriptBlock {

Invoke-WinUtilSSHServer

Write-Host "======================================="
Write-Host "-- OpenSSH Server installed! ---"
Write-Host "======================================="
}
}

0 comments on commit fa9dbca

Please sign in to comment.