From b83b0e8c4f0c1f20ce69412ba504b93d7aeb67ac Mon Sep 17 00:00:00 2001 From: shoopea Date: Sun, 17 Nov 2024 18:48:52 +0100 Subject: [PATCH] reverse --- ssh.go | 12 ++++++------ version.go | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/ssh.go b/ssh.go index a957724..483f505 100644 --- a/ssh.go +++ b/ssh.go @@ -136,12 +136,12 @@ func (s *Ssh) ExecPipe(cmd string) error { return err } s.session = session - /* - 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("") - return err - } - */ + + 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("") + return err + } + if s.in, err = s.session.StdinPipe(); err != nil { log.WithFields(log.Fields{"name": s.name, "cmd": cmd, "call": "session.StdinPipe", "error": err}).Errorf("") s.session.Close() diff --git a/version.go b/version.go index 9fb7140..270ff14 100644 --- a/version.go +++ b/version.go @@ -1,7 +1,7 @@ // Code generated by version.sh (@generated) DO NOT EDIT. package main -var githash = "757b6b1" +var githash = "6ed3897" var branch = "master" -var buildstamp = "2024-11-17_17:45:50" -var commits = "102" -var version = "757b6b1-b102 - 2024-11-17_17:45:50" +var buildstamp = "2024-11-17_17:48:44" +var commits = "103" +var version = "6ed3897-b103 - 2024-11-17_17:48:44"