mirror of
https://github.com/romanz/amodem.git
synced 2026-04-22 06:16:26 +08:00
gpg: add a script for faster commit verification
This commit is contained in:
1
setup.py
1
setup.py
@@ -31,6 +31,5 @@ setup(
|
|||||||
'trezor-agent = trezor_agent.__main__:run_agent',
|
'trezor-agent = trezor_agent.__main__:run_agent',
|
||||||
'trezor-git = trezor_agent.__main__:run_git',
|
'trezor-git = trezor_agent.__main__:run_git',
|
||||||
'trezor-gpg = trezor_agent.gpg.signer:main',
|
'trezor-gpg = trezor_agent.gpg.signer:main',
|
||||||
'trezor-git-gpg-wrapper = trezor_agent.gpg.git_wrapper:main',
|
|
||||||
]},
|
]},
|
||||||
)
|
)
|
||||||
|
|||||||
7
trezor_agent/gpg/trezor-git-gpg-wrapper.sh
Executable file
7
trezor_agent/gpg/trezor-git-gpg-wrapper.sh
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
if [[ "$*" == *"--verify"* ]]
|
||||||
|
then
|
||||||
|
gpg2 $* # verify using GPG2 (for ECDSA and EdDSA keys)
|
||||||
|
else
|
||||||
|
python -m trezor_agent.gpg.git_wrapper $* # sign using TREZOR
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user