Skip to content

Commit

Permalink
getuto: Improve gpg cleanup by killing all components
Browse files Browse the repository at this point in the history
Kills all components instead of just the gpg-agent and dirmngr.
This is more straightforward and should prevent any future issues
caused by services not being killed before getuto runs.
Prevents services from lingering after getuto completes.

Signed-off-by: Zen <z@pyl.onl>
  • Loading branch information
desultory committed Nov 16, 2024
1 parent 89e6a55 commit 62fbff3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions getuto
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ else
}
fi

gpgconf --kill gpg-agent
gpgconf --kill dirmngr
gpgconf --kill all
set -e

mykeyservers=(
Expand Down Expand Up @@ -207,5 +206,4 @@ fi
chmod ugo+r "${GNUPGHOME}/trustdb.gpg"

# Clean up.
gpgconf --kill gpg-agent
gpgconf --kill dirmngr
gpgconf --kill all

0 comments on commit 62fbff3

Please sign in to comment.