diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-03-27 09:34:01 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-03-27 09:34:01 +0200 |
commit | 465d5db06e56dc21072a8ff01258f6815d340b00 (patch) | |
tree | ae16ecf2f980b054caa2f97f48e8fa5f22b768a6 /bin/ak-reference | |
parent | 1cb6c8bef840a96baa37392e9833a7674f805a83 (diff) | |
download | arching-kaos-tools-465d5db06e56dc21072a8ff01258f6815d340b00.tar.gz arching-kaos-tools-465d5db06e56dc21072a8ff01258f6815d340b00.tar.bz2 arching-kaos-tools-465d5db06e56dc21072a8ff01258f6815d340b00.zip |
new lib _ak_ipfs
Diffstat (limited to 'bin/ak-reference')
-rwxr-xr-x | bin/ak-reference | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/ak-reference b/bin/ak-reference index a1a800f..ee30ae3 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_ipfs source $AK_LIBDIR/_ak_gpg echo $ZREFERENCESDIR if [ ! -d $ZREFERENCESDIR ]; then @@ -32,7 +33,7 @@ EOF TO_FILE="$REFERENCEFILE-$REFERENCE-$REFER_TO" mv $REFERENCEFILE $ZREFERENCESDIR/$TO_FILE echo $TO_FILE - IPFS_FILE=$(ak-ipfs-add $ZREFERENCESDIR/$TO_FILE) + IPFS_FILE=$(_ak_ipfs_add $ZREFERENCESDIR/$TO_FILE) sed -e 's,Qm.*,'"$IPFS_FILE"',g' $ZREFERENCESDIR/README _ak_modules_reference_add $ZREFERENCESDIR/$TO_FILE cd $ZREFERENCESDIR @@ -85,10 +86,10 @@ _ak_modules_reference_add(){ FILE="$1" echo "Adding references from " $FILE DATETIME=$(echo $FILE | cut -d - -f 1 | awk '{print $1}') - FILE_IPFS_HASH=$(ak-ipfs-add $FILE) + FILE_IPFS_HASH=$(_ak_ipfs_add $FILE) FILE_SIGN_FILE=$FILE".asc" _ak_gpg_sign_detached $FILE_SIGN_FILE $FILE - FILE_SIGNATURE=$(ak-ipfs-add $FILE_SIGN_FILE) + FILE_SIGNATURE=$(_ak_ipfs_add $FILE_SIGN_FILE) cat > data <<EOF { "datetime":"$(date -u +%s)", |