Merge pull request #33 from mattn/windows

Support Windows
This commit is contained in:
Kota Kanbe
2016-04-22 18:37:09 +09:00
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 {