From 8eb31941c0471b59aefb8a54ec49ed1862fea312 Mon Sep 17 00:00:00 2001 From: Sufyaan Date: Mon, 29 Jul 2024 11:24:41 +0000 Subject: [PATCH] bash --- new-post.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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