Avoid setting time for memory assets
These do not have any file modification time Previously used '0001-01-01 00:00:00 +0000'pull/9256/head
parent
f18eed2afd
commit
359efd68b2
|
@ -263,7 +263,7 @@ func (s *SSHRunner) Copy(f assets.CopyableFile) error {
|
|||
mtime, err := f.GetModTime()
|
||||
if err != nil {
|
||||
glog.Infof("error getting modtime for %s: %v", dst, err)
|
||||
} else {
|
||||
} else if mtime != (time.Time{}) {
|
||||
scp += fmt.Sprintf(" && sudo touch -d \"%s\" %s", mtime.Format(layout), dst)
|
||||
}
|
||||
out, err := sess.CombinedOutput(scp)
|
||||
|
|
Loading…
Reference in New Issue