aboutsummaryrefslogtreecommitdiff
path: root/lib/_ak_gpg
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-04-05 14:28:24 +0300
committerkaotisk <kaotisk@arching-kaos.org>2024-04-05 14:28:24 +0300
commit29b0d694517e610f98880844aeebe8eb12b0033a (patch)
treefe1885ff5a8c424b72330124e4905f0ddf14cfa4 /lib/_ak_gpg
parent0fd522a6e324de08a99bdd42ead193acff6f3d15 (diff)
downloadarching-kaos-tools-29b0d694517e610f98880844aeebe8eb12b0033a.tar.gz
arching-kaos-tools-29b0d694517e610f98880844aeebe8eb12b0033a.tar.bz2
arching-kaos-tools-29b0d694517e610f98880844aeebe8eb12b0033a.zip
might fix ipfs installation
Diffstat (limited to 'lib/_ak_gpg')
-rwxr-xr-xlib/_ak_gpg15
1 files changed, 15 insertions, 0 deletions
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
+}