penguin/s3-arch-utils

bash scripts for s3

commit 8ab60370a032f6fb9987a20fae517d382f7644e6

author斟酌 鵬兄 <tgckpg@gmail.com>
date2022-05-06T13:08:34Z
subject%2F -> /
commit 8ab60370a032f6fb9987a20fae517d382f7644e6
Author: 斟酌 鵬兄 <tgckpg@gmail.com>
Date:   2022-05-06T13:08:34Z

    %2F -> /
---
 arch_list_aws4.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch_list_aws4.sh b/arch_list_aws4.sh
index edb832d..5567b35 100755
--- a/arch_list_aws4.sh
+++ b/arch_list_aws4.sh
@@ -104,4 +104,4 @@ curl -s -XGET \
   -H "Authorization: AWS4-HMAC-SHA256 Credential=$ACCESS_KEY/$_DATE/$REGION/$SERVICE/aws4_request, SignedHeaders=$_HEADERS, Signature=$SIG" \
   "https://$BUCKET_URL/$_PATH?$QSTR" \
   | grep -Eo "<Key>[^<]*?</Key>" \
-  | sed "s/^<Key>\|<\/Key>//g"
+  | sed -e "s/^<Key>\|<\/Key>//g" -e "s/%2F/\//g"