From b03d6cbd0a72d6f64db8d8a5b8087ef4bcad57b8 Mon Sep 17 00:00:00 2001 From: CPunch Date: Tue, 2 Aug 2022 00:13:16 -0500 Subject: [PATCH] Deadswitch: I am dumb --- templates/blog/imdead.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/templates/blog/imdead.sh b/templates/blog/imdead.sh index 163cad0..99cc300 100644 --- a/templates/blog/imdead.sh +++ b/templates/blog/imdead.sh @@ -2,18 +2,17 @@ cd $HOME/deadman -postPatch='dead.patch' -pageName='openpunk/content/pages/dead.md' +postPatch='../dead.patch' +pageName='content/pages/dead.md' currDate=$(date '+%Y-%m-%d') git clone git@github.com:CPunch/openpunk.git -git am postPatch - -# replace our --DATE-- with the current date -sed -i 's/--DATE--/'$currDate'/g' $pageName # commit & push the post cd openpunk +git am postPatch +# replace our --DATE-- with the current date +sed -i 's/--DATE--/'$currDate'/g' $pageName git add . git commit -m "DeadSwitch: No response from CPunch in 14 days, posting dead.md" git push --force