aboutsummaryrefslogtreecommitdiff
path: root/news
diff options
context:
space:
mode:
Diffstat (limited to 'news')
-rwxr-xr-xnews8
1 files 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"