Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
2a52603b
Unverified
Commit
2a52603b
authored
Mar 01, 2019
by
neil
Committed by
GitHub
Mar 01, 2019
Browse files
Merge pull request #2128 from the729/fix-qiniu-base64
fix deploy/qiniu.sh base64
parents
e6f9f258
af5f7a77
Changes
1
Show whitespace changes
Inline
Side-by-side
deploy/qiniu.sh
View file @
2a52603b
...
...
@@ -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
"
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment