Browse Source
Merge pull request #2128 from the729/fix-qiniu-base64
fix deploy/qiniu.sh base64
pull/2137/head
neil
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
deploy/qiniu.sh
|
|
@ -87,6 +87,6 @@ qiniu_deploy() { |
|
|
|
} |
|
|
|
|
|
|
|
_make_access_token() { |
|
|
|
_token="$(printf "%s\n" "$1" | _hmac "sha1" "$(printf "%s" "$QINIU_SK" | _hex_dump | tr -d " ")" | _base64)" |
|
|
|
_token="$(printf "%s\n" "$1" | _hmac "sha1" "$(printf "%s" "$QINIU_SK" | _hex_dump | tr -d " ")" | _base64 | tr -- '+/' '-_')" |
|
|
|
echo "$QINIU_AK:$_token" |
|
|
|
} |