From 29b0d694517e610f98880844aeebe8eb12b0033a Mon Sep 17 00:00:00 2001 From: kaotisk Date: Fri, 5 Apr 2024 14:28:24 +0300 Subject: might fix ipfs installation --- lib/_ak_gpg | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'lib/_ak_gpg') diff --git a/lib/_ak_gpg b/lib/_ak_gpg index 4c73188..d8010b2 100755 --- a/lib/_ak_gpg +++ b/lib/_ak_gpg @@ -117,3 +117,18 @@ _ak_gpg_key_self_export(){ exit 1 fi } + +_ak_gpg_list_keys(){ + _ak_gpg --list-keys | grep '^ ' | awk '{print $1}' | tr '\n' ' ' +} + +_ak_gpg_select_key(){ + select x in $(_ak_gpg_list_keys) + do + echo $x + if [ -n "$x" ] + then + break + fi + done +} -- cgit v1.2.3