mirror of
https://github.com/thegeeklab/drone-s3-sync.git
synced 2024-11-22 11:10:39 +00:00
404 should result in upload
This commit is contained in:
parent
1f515374c1
commit
966a9fd141
4
aws.go
4
aws.go
@ -108,8 +108,8 @@ func (a *AWS) Upload(local, remote string) error {
|
||||
Bucket: aws.String(p.Bucket),
|
||||
Key: aws.String(remote),
|
||||
})
|
||||
if err != nil && err.(awserr.Error).Code() != "404" {
|
||||
if err.(awserr.Error).Code() == "404" {
|
||||
if err != nil {
|
||||
if err.(awserr.Error).Code() != "404" {
|
||||
return err
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user