mirror of
https://github.com/thegeeklab/wp-s3-action.git
synced 2024-11-25 00:10:39 +00:00
ignore errs from head
This commit is contained in:
parent
5707a06507
commit
c770036ece
5
aws.go
5
aws.go
@ -94,13 +94,10 @@ func (a *AWS) Upload(local, remote string) error {
|
|||||||
contentType = mime.TypeByExtension(fileExt)
|
contentType = mime.TypeByExtension(fileExt)
|
||||||
}
|
}
|
||||||
|
|
||||||
head, err := a.client.HeadObject(&s3.HeadObjectInput{
|
head, _ := 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()
|
||||||
|
Loading…
Reference in New Issue
Block a user