diff --git a/roles/blog/templates/updateBlog b/roles/blog/templates/updateBlog index 35e59f2..1fd1d76 100644 --- a/roles/blog/templates/updateBlog +++ b/roles/blog/templates/updateBlog @@ -19,7 +19,7 @@ if [ $LOCAL = $REMOTE ]; then # to check for changes (changed_when) echo "up to date" elif [ $LOCAL = $BASE ]; then - # there are changes to reset too so we need to rebuild + # there are changes to reset to so we need to rebuild echo "missing changes !!" git reset --hard origin/main buildBlog diff --git a/roles/deadswitch/files/deadswitch b/roles/deadswitch/files/deadswitch index 02e35f8..9380c51 100644 --- a/roles/deadswitch/files/deadswitch +++ b/roles/deadswitch/files/deadswitch @@ -22,5 +22,5 @@ echo $dTime if [ $dTime -gt $triggerTime ] then touch $fileLock - bash $scriptToRun + source $scriptToRun fi \ No newline at end of file diff --git a/roles/deadswitch/files/imdead.sh b/roles/deadswitch/files/imdead.sh index b5ac208..d7d1af9 100644 --- a/roles/deadswitch/files/imdead.sh +++ b/roles/deadswitch/files/imdead.sh @@ -1,5 +1,4 @@ #!/bin/bash - cd $HOME/deadman postPatch='dead.patch' @@ -10,7 +9,7 @@ git clone git@github.com:CPunch/openpunk.git # commit & push the post cd openpunk -git am postPatch +git am $postPatch # replace our --DATE-- with the current date sed -i 's/--DATE--/'$currDate'/g' $pageName git add .