2022-05-31 00:32:24 +00:00
|
|
|
#!/bin/bash
|
|
|
|
cd $HOME/deadman
|
|
|
|
|
2022-10-04 18:13:46 +00:00
|
|
|
postPatch='dead.patch'
|
2022-08-02 05:13:16 +00:00
|
|
|
pageName='content/pages/dead.md'
|
2022-05-31 00:32:24 +00:00
|
|
|
currDate=$(date '+%Y-%m-%d')
|
|
|
|
|
|
|
|
git clone git@github.com:CPunch/openpunk.git
|
|
|
|
|
|
|
|
# commit & push the post
|
|
|
|
cd openpunk
|
2023-02-02 00:01:52 +00:00
|
|
|
git am $postPatch
|
2022-08-02 05:13:16 +00:00
|
|
|
# replace our --DATE-- with the current date
|
|
|
|
sed -i 's/--DATE--/'$currDate'/g' $pageName
|
2022-05-31 00:32:24 +00:00
|
|
|
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
|
2023-01-16 23:17:07 +00:00
|
|
|
|
|
|
|
updateBlog
|