Support Windows

This commit is contained in:
Yasuhiro Matsumoto
2016-04-15 19:25:41 +09:00
parent b02b7c9081
commit da16f9673e
6 changed files with 24 additions and 5 deletions

View File

@@ -122,7 +122,7 @@ func sshExec(c conf.ServerInfo, cmd string, sudo bool, log ...*logrus.Entry) (re
} else {
logger = log[0]
}
c.SudoOpt.ExecBySudo = true
var err error
if sudo && c.User != "root" {
switch {