From c96e3709d1b019dd1217c921b2070f6221db2943 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Fri, 11 Feb 2022 07:39:21 +0200 Subject: [module] ak-files --- bin/ak-files | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100755 bin/ak-files diff --git a/bin/ak-files b/bin/ak-files new file mode 100755 index 0000000..e598e47 --- /dev/null +++ b/bin/ak-files @@ -0,0 +1,45 @@ +#!/bin/bash +# The following creates a mixtape data message +# We can extend it by calling the pack_z_block.sh mixtape/add data + +usage(){ + title + echo "$0 - file" +} + +main(){ + echo "Adding $FILE" + + FILE_IPFS_HASH=$(ipfs add -q $FILE) + + SIGN_FILE=$FILE".asc" + gpg2 --detach-sign --sign-with $FINGERPRINT --armor --output $SIGN_FILE $FILE + + SIGNATURE=$(ipfs add -q $SIGN_FILE) + + cat > data <