arch-repo-builder/getkeys.sh
Knut Ahlers a81f53faf0
Ignore unbound vars in PKGBUILD
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2019-04-05 17:14:26 +02:00

16 lines
254 B
Bash
Executable file

#!/bin/bash
set -eo pipefail
[ -f "PKGBUILD" ] || {
echo "No PKGBUILD file found"
exit 1
}
source PKGBUILD
[ -n "${validpgpkeys:-}" ] || {
echo "No 'validpgpkeys' directive found, nothing to do"
exit 0
}
exec gpg --recv-keys "${validpgpkeys[@]}"