diff options
Diffstat (limited to 'bin/ak-todos')
-rwxr-xr-x | bin/ak-todos | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/ak-todos b/bin/ak-todos index b95b3a8..218feda 100755 --- a/bin/ak-todos +++ b/bin/ak-todos @@ -34,7 +34,7 @@ create(){ ak-logthis "Renaming..." TITLE="$(head -n 1 $TODOS_FILE)" TO_FILE=$TODOS_FILE-$(echo $TITLE | tr '[:upper:]' '[:lower:]' | sed -e 's/ /\_/g' ) - IPFS_FILE=$(ipfs add -q $TODOS_FILE) + IPFS_FILE=$(ak-ipfs-add $TODOS_FILE) mv $TODOS_FILE $ZTODOSDIR/$TO_FILE sed -e 's,Qm.*,'"$IPFS_FILE"',g' $ZTODOSDIR/README add $ZTODOSDIR/$TO_FILE @@ -89,10 +89,10 @@ add(){ ak-logthis "Adding todos from $FILE" DATETIME=$(echo $FILE | cut -d - -f 1 | awk '{print $1}') TITLE=$(head -n 1 $FILE) - FILE_IPFS_HASH=$(ipfs add -q $FILE) + FILE_IPFS_HASH=$(ak-ipfs-add $FILE) FILE_SIGN_FILE=$FILE".asc" gpg --detach-sign --sign-with $FINGERPRINT --armor --output $FILE_SIGN_FILE $FILE - FILE_SIGNATURE=$(ipfs add -q $FILE_SIGN_FILE) + FILE_SIGNATURE=$(ak-ipfs-add $FILE_SIGN_FILE) cat > data <<EOF { "datetime":"$TODOS_FILE", @@ -106,7 +106,7 @@ EOF echo "File $FILE doesn't exist"; exit 2 fi - pack_z_block "todos/add" data + ak-pack_z_block "todos/add" data if [ $? == 0 ] then ak-logthis "Todos added successfully" |