borg/scripts/sign-binaries
2019-02-11 02:44:44 +01:00

21 lines
332 B
Bash
Executable File

#!/bin/bash
D=$1
if [ "$D" = "" ]; then
echo "Usage: sign-binaries 201912312359"
exit
fi
if [ "$QUBES_GPG_DOMAIN" = "" ]; then
GPG=gpg
else
GPG=qubes-gpg-client-wrapper
fi
for file in dist/borg-*; do
$GPG --local-user "Thomas Waldmann" --armor --detach-sign --output $file.asc $file
done
touch -t $D dist/*