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
Anders F Björklund 2020-09-15 17:13:39 +02:00
parent f18eed2afd
commit 359efd68b2
1 changed files with 1 additions and 1 deletions

View File

@ -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)