Skip to content
This repository has been archived by the owner on May 4, 2021. It is now read-only.

Fix problem with bucket existence verification #32

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

davidbnk
Copy link

@davidbnk davidbnk commented Feb 6, 2017

Right now the bash script is using grep to find the presence of the bucket name anywhere in the response of aws s3 ls
The problem is that if you have something like this:

bash# aws s3 ls
2017-02-06 17:55:36 my-bucket-test

And now supose you want to run the script with a bucket named my-bucket, the grep will match the output and it will behave as if the bucket already exists

Right now the bash script is using grep to find the presence of the bucket name anywhere in the response of `aws s3 ls`
The problem is that if you have something like this:

```
bash# aws s3 ls
2017-02-06 17:55:36 my-bucket-test
```

And now supose you want to run the script with a bucket named `my-bucket`, the `grep` will match the output and it will behave as if the bucket already exists
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant