aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-reference
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ak-reference')
-rwxr-xr-xbin/ak-reference3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/ak-reference b/bin/ak-reference
index 390339e..a1a800f 100755
--- a/bin/ak-reference
+++ b/bin/ak-reference
@@ -2,6 +2,7 @@
ZREFERENCESDIR="$AK_WORKDIR/references"
TEMP="/tmp/aktmp"
source $AK_LIBDIR/_ak_logit
+source $AK_LIBDIR/_ak_gpg
echo $ZREFERENCESDIR
if [ ! -d $ZREFERENCESDIR ]; then
mkdir $ZREFERENCESDIR
@@ -86,7 +87,7 @@ _ak_modules_reference_add(){
DATETIME=$(echo $FILE | cut -d - -f 1 | awk '{print $1}')
FILE_IPFS_HASH=$(ak-ipfs-add $FILE)
FILE_SIGN_FILE=$FILE".asc"
- gpg2 --homedir $AK_GPGHOME --detach-sign --sign-with $AK_FINGERPRINT --armor --output $FILE_SIGN_FILE $FILE
+ _ak_gpg_sign_detached $FILE_SIGN_FILE $FILE
FILE_SIGNATURE=$(ak-ipfs-add $FILE_SIGN_FILE)
cat > data <<EOF
{