mirror of
https://github.com/luzifer-docker/arch-repo-builder.git
synced 2024-10-18 06:44:20 +00:00
16 lines
254 B
Bash
Executable file
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[@]}"
|