aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-files
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-03-27 03:49:27 +0200
committerkaotisk <kaotisk@arching-kaos.org>2024-03-27 03:49:27 +0200
commit28717aded7df4ac4842fa308e67c1c15e1de4ffa (patch)
tree64a93db7a952dabf5c2af3b7776bdcf0d050e181 /bin/ak-files
parentabdfe0a5c2a86f19aafe12ae70663ddcf83a6e39 (diff)
downloadarching-kaos-tools-28717aded7df4ac4842fa308e67c1c15e1de4ffa.tar.gz
arching-kaos-tools-28717aded7df4ac4842fa308e67c1c15e1de4ffa.tar.bz2
arching-kaos-tools-28717aded7df4ac4842fa308e67c1c15e1de4ffa.zip
Introduced and applied _ak_gpg library
Diffstat (limited to 'bin/ak-files')
-rwxr-xr-xbin/ak-files3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/ak-files b/bin/ak-files
index 2280cce..c4d6f2c 100755
--- a/bin/ak-files
+++ b/bin/ak-files
@@ -4,6 +4,7 @@ ZFILESDIR="$AK_WORKDIR/files"
TEMP="/tmp/aktmp"
PROGRAM="$(basename $0)"
source $AK_LIBDIR/_ak_logit
+source $AK_LIBDIR/_ak_gpg
if [ ! -d $ZFILESDIR ]; then
mkdir $ZFILESDIR
@@ -62,7 +63,7 @@ main(){
fi
logit "INFO" "Signing..."
SIGN_FILE=$FILENAME".asc"
- gpg2 --homedir $AK_GPGHOME --detach-sign --sign-with $AK_FINGERPRINT --armor --output $SIGN_FILE $FILE
+ _ak_gpg_sign_detached $SIGN_FILE $FILE
if [ $? == 0 ]; then
logit "INFO" "Signed"
else