diff options
author | kaotisk <kaotisk@arching-kaos.com> | 2021-11-20 00:08:54 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.com> | 2021-11-20 00:08:54 +0200 |
commit | 4680df3e880be45c83a298002557fa6ac1b3a423 (patch) | |
tree | 9f15ca2f32e90730ad779ed49a9d16e1a18aa083 /bin/add-new.sh | |
parent | 7e57767f0c0355f808486111580be41c2f467a10 (diff) | |
download | 01-NEWS-4680df3e880be45c83a298002557fa6ac1b3a423.tar.gz 01-NEWS-4680df3e880be45c83a298002557fa6ac1b3a423.tar.bz2 01-NEWS-4680df3e880be45c83a298002557fa6ac1b3a423.zip |
Packing to latest changes
Diffstat (limited to 'bin/add-new.sh')
-rwxr-xr-x | bin/add-new.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/add-new.sh b/bin/add-new.sh index 086cff8..5685184 100755 --- a/bin/add-new.sh +++ b/bin/add-new.sh @@ -4,7 +4,7 @@ vi $NEWS_FILE echo "Renaming..." TITLE="$(head -n 1 $NEWS_FILE)" TO_FILE=$NEWS_FILE-$(echo $TITLE | tr '[:upper:]' '[:lower:]' | sed -e 's/ /\_/g' ) -mv $NEWS_FILE $TO_FILE +mv $NEWS_FILE news/$TO_FILE echo "Adding to git repo..." -git add $TO_FILE -git commit -m "Added $NEWS_FILE with $(head -n 1 $TO_FILE)" +git add news/$TO_FILE +git commit -m "Added $TO_FILE with $(head -n 1 news/$TO_FILE)" |