install: avoid local gpg configuration for non-local verify step

This commit is contained in:
CJ van den Berg 2025-10-22 13:03:44 +02:00
parent e6a2a7aa62
commit 1d8dd56e16
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -241,7 +241,7 @@ fi
if [ "$verify" -eq 1 ]; then if [ "$verify" -eq 1 ]; then
curl -fL "$url.sig" -o "$tmp_path/$filename.$ext.sig" curl -fL "$url.sig" -o "$tmp_path/$filename.$ext.sig"
curl -fL 'https://flow-control.dev/public.gpg' -o "$tmp_path/flow-control-public.gpg" curl -fL 'https://flow-control.dev/public.gpg' -o "$tmp_path/flow-control-public.gpg"
gpg --no-default-keyring --keyring "$tmp_path/flow-control-public.gpg" --verify "$tmp_path/$filename.$ext.sig" "$tmp_path/$filename.$ext" gpg --homedir "$tmp_path/" --no-options --no-default-keyring --keyring "$tmp_path/flow-control-public.gpg" --verify "$tmp_path/$filename.$ext.sig" "$tmp_path/$filename.$ext"
if [ "$local" -eq 1 ]; then if [ "$local" -eq 1 ]; then
gpg --verify "$tmp_path/$filename.$ext.sig" "$tmp_path/$filename.$ext" gpg --verify "$tmp_path/$filename.$ext.sig" "$tmp_path/$filename.$ext"