Fixed prefix with slash generates wrong sig

This commit is contained in:
2023-09-10 23:51:16 +08:00
parent 6332216685
commit 390ff81c8e
6 changed files with 6 additions and 6 deletions

View File

@@ -37,7 +37,7 @@ if [ -z "$ARCH_S3_BUCKET_URL" ]; then
fi
function _str { printf "%s" $@; }
function _stre { printf $@; }
function _stre { printf $( echo -n "$@" | sed "s/%/%%/g" ); }
BUCKET_NAME=$( _str $ARCH_S3_BUCKET_URL | cut -d'.' -f1 )
SERVICE=$( _str $ARCH_S3_BUCKET_URL | cut -d'.' -f2 )