1
0
Fork 0
.profile/scripts/gpg-verify.sh

18 lines
258 B
Bash

#!/bin/sh
if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
display_help=true
fi
if [ $# -ne 2 ]; then
display_help=true
fi
if [ "$display_help" = true ]; then
echo "Usage: $(basename $0) <file> <detached signature file>"
exit 0
fi
gpg --verify $2 $1