Fixed prefix with slash generates wrong sig
This commit is contained in:
parent
6332216685
commit
390ff81c8e
@ -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 )
|
||||
|
@ -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; }
|
||||
|
@ -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 )
|
||||
|
@ -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 )
|
||||
|
@ -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 )
|
||||
|
@ -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 )
|
||||
|
Loading…
Reference in New Issue
Block a user