diff --git a/client/ssh/server/command_execution_windows.go b/client/ssh/server/command_execution_windows.go index 25f4a75eb..7b7a6a492 100644 --- a/client/ssh/server/command_execution_windows.go +++ b/client/ssh/server/command_execution_windows.go @@ -403,11 +403,3 @@ func (s *Server) killProcessGroup(cmd *exec.Cmd) { logger.Debugf("kill process failed: %v", err) } } - -// buildShellArgs builds shell arguments for executing commands -func buildShellArgs(shell, command string) []string { - if command != "" { - return []string{shell, "-Command", command} - } - return []string{shell} -}