mirror of
https://github.com/CPunch/openpunk-ansible.git
synced 2025-10-16 14:00:13 +00:00
Deadswitch: Use git patches instead of a raw markdown file
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user