Skip to content

Commit

Permalink
fix: extracts bucket name
Browse files Browse the repository at this point in the history
  • Loading branch information
Balou9 committed Jun 15, 2023
1 parent ea9162d commit ae4c61b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
# get bucket name from jq output value
function getBucketName() {
bs1=(${1//:/ })
bucketstr1=${bs1[1]}
bs2=(${bucketstr1//,/ })
bucket_trimmed=${bs2[0]}
real_bucket_name=$(sed -e 's/^"//' -e 's/"$//' <<<"$bucket_trimmed")
bn=$(echo "${bs1[1]}"| tr -d '"')
real_bucket_name=$(echo ${bn%\}*})
printf "$real_bucket_name"
}

Expand Down

0 comments on commit ae4c61b

Please sign in to comment.