diff options
author | kaotisk <kaotisk@arching-kaos.com> | 2021-11-20 09:28:39 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.com> | 2021-11-20 09:28:39 +0200 |
commit | 6dfa0ddc24c1c3e35ab2c5c0e846ad3b61d64c52 (patch) | |
tree | d43744d96d3f46047b8aa9919fd2b44f8525a628 /bin/add-new.sh | |
parent | 58f4439f4032c125ba916421970997e027c75bec (diff) | |
download | 01-NEWS-6dfa0ddc24c1c3e35ab2c5c0e846ad3b61d64c52.tar.gz 01-NEWS-6dfa0ddc24c1c3e35ab2c5c0e846ad3b61d64c52.tar.bz2 01-NEWS-6dfa0ddc24c1c3e35ab2c5c0e846ad3b61d64c52.zip |
Added functionality to get the added one to the README page
Diffstat (limited to 'bin/add-new.sh')
-rwxr-xr-x | bin/add-new.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/add-new.sh b/bin/add-new.sh index 5685184..55fb69f 100755 --- a/bin/add-new.sh +++ b/bin/add-new.sh @@ -4,6 +4,8 @@ vi $NEWS_FILE echo "Renaming..." 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 mv $NEWS_FILE news/$TO_FILE echo "Adding to git repo..." git add news/$TO_FILE |