reverse
This commit is contained in:
parent
6ed38972e7
commit
b83b0e8c4f
4
ssh.go
4
ssh.go
@ -136,12 +136,12 @@ func (s *Ssh) ExecPipe(cmd string) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
s.session = session
|
s.session = session
|
||||||
/*
|
|
||||||
if err = s.session.Setenv("TZ", cfg.Timezone); err != nil {
|
if err = s.session.Setenv("TZ", cfg.Timezone); err != nil {
|
||||||
log.WithFields(log.Fields{"name": s.name, "cmd": cmd, "call": "session.Setenv", "attr": cfg.Timezone, "error": err}).Errorf("")
|
log.WithFields(log.Fields{"name": s.name, "cmd": cmd, "call": "session.Setenv", "attr": cfg.Timezone, "error": err}).Errorf("")
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
if s.in, err = s.session.StdinPipe(); err != nil {
|
if s.in, err = s.session.StdinPipe(); err != nil {
|
||||||
log.WithFields(log.Fields{"name": s.name, "cmd": cmd, "call": "session.StdinPipe", "error": err}).Errorf("")
|
log.WithFields(log.Fields{"name": s.name, "cmd": cmd, "call": "session.StdinPipe", "error": err}).Errorf("")
|
||||||
s.session.Close()
|
s.session.Close()
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// Code generated by version.sh (@generated) DO NOT EDIT.
|
// Code generated by version.sh (@generated) DO NOT EDIT.
|
||||||
package main
|
package main
|
||||||
var githash = "757b6b1"
|
var githash = "6ed3897"
|
||||||
var branch = "master"
|
var branch = "master"
|
||||||
var buildstamp = "2024-11-17_17:45:50"
|
var buildstamp = "2024-11-17_17:48:44"
|
||||||
var commits = "102"
|
var commits = "103"
|
||||||
var version = "757b6b1-b102 - 2024-11-17_17:45:50"
|
var version = "6ed3897-b103 - 2024-11-17_17:48:44"
|
||||||
|
Loading…
Reference in New Issue
Block a user