Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1 from kinghrothgar/fixBucketCheck
Browse files Browse the repository at this point in the history
Fix bucket verification
  • Loading branch information
sveesible committed May 10, 2016
2 parents b6f7e94 + fb65acf commit 5eccca0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cassandra-cloud-backup.sh
Expand Up @@ -243,7 +243,7 @@ function validate() {
logerror "Please pass in the GCS Bucket to use with this script"
exit 1
else
if ! ${GSUTIL} ls -l ${GCS_BUCKET} | grep -q ${GCS_BUCKET} ; then
if ! ${GSUTIL} ls ${GCS_BUCKET} &> /dev/null; then
logerror "Cannot access Google Cloud Storage bucket ${GCS_BUCKET} make sure" \
" it exists"
exit 1
Expand Down

0 comments on commit 5eccca0

Please sign in to comment.