mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-27 12:46:39 +00:00
Fix lint
This commit is contained in:
@@ -401,3 +401,11 @@ 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}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user