aboutsummaryrefslogtreecommitdiff
path: root/lib/_ak_gpg
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2025-04-10 08:30:01 +0300
committerkaotisk <kaotisk@arching-kaos.org>2025-04-10 08:30:01 +0300
commitf06974646f49940f3cff19d89078411189a6c62b (patch)
tree50ff054049f6d4f0051f3b76d02ebd02e558177e /lib/_ak_gpg
parent567680a13beeb02a4371930048128a03737b3626 (diff)
downloadarching-kaos-tools-f06974646f49940f3cff19d89078411189a6c62b.tar.gz
arching-kaos-tools-f06974646f49940f3cff19d89078411189a6c62b.tar.bz2
arching-kaos-tools-f06974646f49940f3cff19d89078411189a6c62b.zip
[new] _ak_gpg_clear_sign_with_key function
Diffstat (limited to 'lib/_ak_gpg')
-rwxr-xr-xlib/_ak_gpg9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/_ak_gpg b/lib/_ak_gpg
index 079a7da..7832ca1 100755
--- a/lib/_ak_gpg
+++ b/lib/_ak_gpg
@@ -134,6 +134,15 @@ function _ak_gpg_sign_clear(){
fi
}
+function _ak_gpg_sign_clear_with_key(){
+ if [ ! -z $1 ] && [ -n "$1" ] && [ ! -z $2 ] && [ -n "$2" ] && [ ! -z $3 ] && [ -n "$3" ]
+ then
+ _ak_gpg --clear-sign --sign-with $3 --armor --output $1 $2
+ else
+ exit 1
+ fi
+}
+
function _ak_gpg_encrypt_sign(){
if [ ! -z $1 ] && [ -n "$1" ] && [ ! -z $2 ] && [ -n "$2" ] && [ ! -z $3 ] && [ -n "$3" ]
then