From 54b08ee30b60dea3dab35d74c9b6e358d743ad56 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Wed, 5 Apr 2023 11:48:54 -0700 Subject: [PATCH] setup-apt-repo: Fix GPG check of groonga-apt-source-*.deb. Signed-off-by: Anders Kaseorg --- scripts/setup/apt-repos/zulip/custom.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/setup/apt-repos/zulip/custom.sh b/scripts/setup/apt-repos/zulip/custom.sh index c8fc1f1bd1..0720d88b2f 100755 --- a/scripts/setup/apt-repos/zulip/custom.sh +++ b/scripts/setup/apt-repos/zulip/custom.sh @@ -1,6 +1,9 @@ #!/usr/bin/env bash +set -euo pipefail if [[ ! -e /usr/share/doc/groonga-apt-source/copyright ]]; then + pgroonga_apt_sign_key=$(readlink -f "$LIST_PATH/pgroonga-packages.groonga.org.asc") + remove_pgroonga_apt_tmp_dir() { rm -rf "$pgroonga_apt_tmp_dir" } @@ -10,7 +13,6 @@ if [[ ! -e /usr/share/doc/groonga-apt-source/copyright ]]; then { cd "$pgroonga_apt_tmp_dir" || exit 1 tmp_gpg_home=.gnupg - pgroonga_apt_sign_key="$LIST_PATH/pgroonga-packages.groonga.org.asc" gpg --homedir="$tmp_gpg_home" --import "$pgroonga_apt_sign_key" # Find fingerprint of the first key. pgroonga_apt_sign_key_fingerprint=$(