Skip to content
Permalink
Browse files

Merge pull request #2128 from the729/fix-qiniu-base64

fix deploy/qiniu.sh base64
  • Loading branch information...
Neilpang committed Mar 1, 2019
2 parents e6f9f25 + af5f7a7 commit 2a52603b7eff25d0c1a3720257751f0386c474e4
Showing with 1 addition and 1 deletion.
  1. +1 −1 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"
}

0 comments on commit 2a52603

Please sign in to comment.
You can’t perform that action at this time.