From a6a3d2d893e852b860af6baff507b602d64f704b Mon Sep 17 00:00:00 2001 From: kaotisk Date: Thu, 16 Dec 2021 11:58:16 +0200 Subject: Fix, missing double-quotes in filename attribute --- news | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/news b/news index 7db0032..cbc558e 100755 --- a/news +++ b/news @@ -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" -- cgit v1.2.3