diff options
-rwxr-xr-x | news | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -20,12 +20,12 @@ create(){ TITLE="$(head -n 1 $NEWS_FILE)" TO_FILE=$NEWS_FILE-$(echo $TITLE | tr '[:upper:]' '[:lower:]' | sed -e 's/ /\_/g' ) IPFS_FILE=$(ipfs add -q $NEWS_FILE) - #sed -e 's/Qm.*/'$IPFS_FILE'/' README + sed -e 's/Qm.*/'$IPFS_FILE'/' $ZNEWSDIR/README add $NEWS_FILE mv $NEWS_FILE $ZNEWSDIR/$TO_FILE echo "Adding to git repo..." cd $ZNEWSDIR - git add $TO_FILE + git add $TO_FILE README git commit -m "Added $TO_FILE with $(head -n 1 $ZNEWSDIR/$TO_FILE)" } index(){ @@ -62,14 +62,14 @@ add(){ { "datetime":"$DATETIME", "title":"$TITLE", - "filename":$FILE", + "filename":"$FILE", "ipfs":"$FILE_IPFS_HASH", "detach":"$FILE_SIGNATURE" } EOF else echo "File $FILE doesn't exist"; fi - sh pack_z_block "news/add" data + pack_z_block "news/add" data } usage(){ echo "#TODO" |