mirror of
https://github.com/drduh/YubiKey-Guide.git
synced 2025-06-18 11:12:40 +02:00
create scripts dir before creating keygrips
This commit is contained in:
parent
d446832705
commit
e974dbb95c
1 changed files with 1 additions and 1 deletions
|
@ -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)):
|
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
|
```console
|
||||||
cat >> ~/scripts/remove-keygrips.sh <<EOF
|
mkdir -p ~/scripts && cat >> ~/scripts/remove-keygrips.sh <<EOF
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
(( $# )) || { echo "Specify a key." >&2; exit 1; }
|
(( $# )) || { echo "Specify a key." >&2; exit 1; }
|
||||||
KEYGRIPS=$(gpg --with-keygrip --list-secret-keys "$@" | awk '/Keygrip/ { print $3 }')
|
KEYGRIPS=$(gpg --with-keygrip --list-secret-keys "$@" | awk '/Keygrip/ { print $3 }')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue