diff options
author | kaotisk <kaotisk@arching-kaos.com> | 2021-12-16 11:58:16 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.com> | 2021-12-16 11:58:16 +0200 |
commit | a6a3d2d893e852b860af6baff507b602d64f704b (patch) | |
tree | 02ed31bb7965e9d22d84438f29f7a1bdfc33ee02 /news | |
parent | 64d66eac9c37d2d42e6f9cdc9f7dc35e57aa88c3 (diff) | |
download | arching-kaos-tools-a6a3d2d893e852b860af6baff507b602d64f704b.tar.gz arching-kaos-tools-a6a3d2d893e852b860af6baff507b602d64f704b.tar.bz2 arching-kaos-tools-a6a3d2d893e852b860af6baff507b602d64f704b.zip |
Fix, missing double-quotes in filename attribute
Diffstat (limited to 'news')
-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" |