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

@ -29,7 +29,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 )

View File

@ -30,7 +30,7 @@ if [ -z "$ARCH_S3_BUCKET_URL" ]; then
fi
function _str { printf "%s" $@; }
function _stre { printf $@; }
function _stre { printf $( echo -n "$@" | sed "s/%/%%/g" ); }
_TEMP=$( mktemp )
function __clean_up { rm $_TEMP; }

View File

@ -28,7 +28,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 )

View File

@ -28,7 +28,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 )

View File

@ -25,7 +25,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 )

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 )