ci: format
This commit is contained in:
parent
5055e4a36b
commit
6cb5ae9dda
2 changed files with 8 additions and 11 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
minimum_pre_commit_version: '3.5.0'
|
minimum_pre_commit_version: "3.5.0"
|
||||||
|
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/JohnnyMorganz/StyLua
|
- repo: https://github.com/JohnnyMorganz/StyLua
|
||||||
|
|
|
||||||
|
|
@ -201,16 +201,13 @@ function M.authorize()
|
||||||
|
|
||||||
local sha_result = vim.system({ 'printf', '%s', code_verifier }, { text = true }):wait()
|
local sha_result = vim.system({ 'printf', '%s', code_verifier }, { text = true }):wait()
|
||||||
local sha_pipe = vim
|
local sha_pipe = vim
|
||||||
.system(
|
.system({
|
||||||
{
|
|
||||||
'sh',
|
'sh',
|
||||||
'-c',
|
'-c',
|
||||||
'printf "%s" "'
|
'printf "%s" "'
|
||||||
.. code_verifier
|
.. code_verifier
|
||||||
.. '" | openssl dgst -sha256 -binary | openssl base64 -A | tr "+/" "-_" | tr -d "="',
|
.. '" | openssl dgst -sha256 -binary | openssl base64 -A | tr "+/" "-_" | tr -d "="',
|
||||||
},
|
}, { text = true })
|
||||||
{ text = true }
|
|
||||||
)
|
|
||||||
:wait()
|
:wait()
|
||||||
local code_challenge = sha_pipe.stdout or ''
|
local code_challenge = sha_pipe.stdout or ''
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue