builder/repo-sign

16 lines
337 B
Plaintext
Raw Permalink Normal View History

2017-11-20 02:12:54 +00:00
#!/usr/bin/bash
shopt -s nullglob
2017-11-20 02:12:54 +00:00
for i in *.pkg.*; do
if ! [[ "$i" == "${i%.*}.sig" ]]; then
if ! [[ -f "${i}.sig" ]]; then
unsigned_pkgs+=( "$i" )
fi
fi
done
for i in "${unsigned_pkgs[@]}"; do
echo $i
gpg --pinentry-mode loopback --passphrase-fd 0 --batch --no-tty --detach-sign --no-armor "$i" < ~/.gnupg/passphrase
done