mirror of
https://github.com/CPunch/openpunk-ansible.git
synced 2024-11-25 08:20:15 +00:00
Deadswitch: I am dumb
This commit is contained in:
parent
1ae090aee7
commit
b03d6cbd0a
@ -2,18 +2,17 @@
|
|||||||
|
|
||||||
cd $HOME/deadman
|
cd $HOME/deadman
|
||||||
|
|
||||||
postPatch='dead.patch'
|
postPatch='../dead.patch'
|
||||||
pageName='openpunk/content/pages/dead.md'
|
pageName='content/pages/dead.md'
|
||||||
currDate=$(date '+%Y-%m-%d')
|
currDate=$(date '+%Y-%m-%d')
|
||||||
|
|
||||||
git clone git@github.com:CPunch/openpunk.git
|
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
|
# commit & push the post
|
||||||
cd openpunk
|
cd openpunk
|
||||||
|
git am postPatch
|
||||||
|
# replace our --DATE-- with the current date
|
||||||
|
sed -i 's/--DATE--/'$currDate'/g' $pageName
|
||||||
git add .
|
git add .
|
||||||
git commit -m "DeadSwitch: No response from CPunch in 14 days, posting dead.md"
|
git commit -m "DeadSwitch: No response from CPunch in 14 days, posting dead.md"
|
||||||
git push --force
|
git push --force
|
||||||
|
Loading…
Reference in New Issue
Block a user