This repository has been archived on 2024-04-07. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/dotfiles/scripts/_pam-gpg-strap

12 lines
130 B
Bash
Executable File

#!/bin/sh
gpg --list-secret-keys --with-keygrip |
awk '
/^ssb/ {
ssb=1
}
/Keygrip/{
if (ssb) print $3
}' > ~/.pam-gnupg