From e5f74348fc7b04fd63a33ba134f7a3275643a58f Mon Sep 17 00:00:00 2001 From: Firepup Sixfifty Date: Tue, 7 May 2024 17:55:55 -0500 Subject: [PATCH] Trying to make this work, slowly --- fsss-ssh.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fsss-ssh.sh b/fsss-ssh.sh index f80efa7..b4dd81b 100644 --- a/fsss-ssh.sh +++ b/fsss-ssh.sh @@ -5,4 +5,5 @@ gpg --default-new-key-algo rsa4096 --gen-key echo '[INFO] Listing keys' echo '$ gpg --list-secret-keys --keyid-format=long' gpg --list-secret-keys --keyid-format=long - +key_id=$(gpg --list-secret-keys --keyid-format=long|grep sec|sed -E 's_.+ .+/([^ ]+) .+_\1_g') +echo "[INFO] Detected key: $key_id"