Deadswitch: Use git patches instead of a raw markdown file

This commit is contained in:
2022-08-01 23:57:43 -05:00
parent 95bf7557ef
commit 63715f1f8a
2 changed files with 5 additions and 5 deletions

View File

@@ -2,12 +2,12 @@
cd $HOME/deadman
postTemplate='dead.md'
postPatch='dead.patch'
pageName='openpunk/content/pages/dead.md'
currDate=$(date '+%Y-%m-%d')
git clone git@github.com:CPunch/openpunk.git
cp $postTemplate $pageName
git am postPatch
# replace our --DATE-- with the current date
sed -i 's/--DATE--/'$currDate'/g' $pageName