diff --git a/new-post.sh b/new-post.sh index 241ceac..53400c5 100755 --- a/new-post.sh +++ b/new-post.sh @@ -1,9 +1,8 @@ -#!/bin/sh +#!/bin/bash # Script for new posts FILE=/tmp/sufyaan-website-post$(date +%d).md -ROOT=~/docs/sys/gits/personal/sufyaan-website echo -ne "- [ ] Linux\n- [ ] Software\n- [ ] Technology\n- [ ] Design\n- [ ] Guides\n- [ ] Cars\n- [ ] Literary\n- [ ] Updates\n- [ ] Other" > $FILE nvim $FILE @@ -18,7 +17,6 @@ read -p "Enter reading time: " READ read -p "Enter previous post: " PREVPOST EMAIL=$(echo $TITLE | sed 's/ /%20/g') -cd $ROOT mkdir -p $URL cp template.html $URL/index.html