Merge pull request #9256 from afbjorklund/touch-mtime

Avoid setting time for memory assets
pull/9267/head
Medya Ghazizadeh 2020-09-15 14:38:26 -07:00 committed by GitHub
commit c55209095b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)