0
0
mirror of https://github.com/thegeeklab/wp-s3-action.git synced 2024-11-10 04:40:38 +00:00

Revert "ignore errs from head"

This reverts commit c770036ece.
This commit is contained in:
Nathan LaFreniere 2015-12-31 12:11:31 -08:00
parent c770036ece
commit 742f2b5e17

5
aws.go
View File

@ -94,10 +94,13 @@ func (a *AWS) Upload(local, remote string) error {
contentType = mime.TypeByExtension(fileExt) contentType = mime.TypeByExtension(fileExt)
} }
head, _ := a.client.HeadObject(&s3.HeadObjectInput{ head, err := a.client.HeadObject(&s3.HeadObjectInput{
Bucket: aws.String(a.vargs.Bucket), Bucket: aws.String(a.vargs.Bucket),
Key: aws.String(remote), Key: aws.String(remote),
}) })
if err != nil {
return err
}
if head != nil { if head != nil {
hash := md5.New() hash := md5.New()