Skip to content

Commit

Permalink
20230304 1452
Browse files Browse the repository at this point in the history
  • Loading branch information
yasutakatou committed Mar 4, 2023
1 parent 8763ac9 commit c2c61db
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion slabot.go
Original file line number Diff line number Diff line change
Expand Up @@ -1834,10 +1834,16 @@ func sshDo(User, Host, Passwd, Port, Command string, timeouts int) (string, bool
debugLog("stdout is :" + b.String() + "; stderr is :" + e.String())

if err := session.Run(Command); err != nil {
if len(b.String()) > len(e.String()) {
return b.String(), false, err
}
return e.String(), false, err
}

return b.String(), true, err
if len(b.String()) > len(e.String()) {
return b.String(), true, err
}
return e.String(), true, err
}

func scpDo(reverse bool, hostInt int, tmpFile, path string) bool {
Expand Down

0 comments on commit c2c61db

Please sign in to comment.