openpunk-ansible/static/blog/imdead.sh

19 lines
416 B
Bash
Raw Normal View History

#!/bin/bash
cd $HOME/deadman
2022-08-02 05:13:16 +00:00
postPatch='../dead.patch'
pageName='content/pages/dead.md'
currDate=$(date '+%Y-%m-%d')
git clone git@github.com:CPunch/openpunk.git
# commit & push the post
cd openpunk
2022-08-02 05:13:16 +00:00
git am postPatch
# replace our --DATE-- with the current date
sed -i 's/--DATE--/'$currDate'/g' $pageName
git add .
2022-05-31 04:36:55 +00:00
git commit -m "DeadSwitch: No response from CPunch in 14 days, posting dead.md"
git push --force