You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trezor-agent/trezor_agent/gpg/trezor-git-gpg-wrapper.sh

8 lines
188 B
Bash

#!/bin/bash
if [[ "$*" == *"--verify"* ]]
then
gpg2 $* # verify using GPG2 (for ECDSA and EdDSA keys)
else
trezor-gpg sign -o- # sign using TREZOR and write the signature to stdout
fi