15 lines
319 B
Plaintext
15 lines
319 B
Plaintext
|
#!/usr/bin/bash
|
||
|
|
||
|
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
|