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

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