mirror of
https://github.com/drduh/YubiKey-Guide.git
synced 2025-07-15 19:48:07 +00:00
create scripts dir before creating keygrips
This commit is contained in:
parent
d446832705
commit
e974dbb95c
@ -1806,7 +1806,7 @@ gpg-connect-agent "scd serialno" "learn --force" /bye
|
||||
Alternatively, use a script to delete the GnuPG shadowed key, where the serial number is stored (see [GnuPG #T2291](https://dev.gnupg.org/T2291)):
|
||||
|
||||
```console
|
||||
cat >> ~/scripts/remove-keygrips.sh <<EOF
|
||||
mkdir -p ~/scripts && cat >> ~/scripts/remove-keygrips.sh <<EOF
|
||||
#!/usr/bin/env bash
|
||||
(( $# )) || { echo "Specify a key." >&2; exit 1; }
|
||||
KEYGRIPS=$(gpg --with-keygrip --list-secret-keys "$@" | awk '/Keygrip/ { print $3 }')
|
||||
|
Loading…
Reference in New Issue
Block a user