git clone https://github.com/Widdershin/cycle-ecosystem.git

# Yeah, I clone my repo into my repo, wanna fight about it?

cd cycle-ecosystem

cp -r ../node_modules .

./node_modules/babel-cli/bin/babel-node.js update.js

git config user.email "ncwjohnstone@gmail.com"
git config user.name "Nick Johnstone (heroku auto update)"

git config credential.helper store

echo https://$GIT_CREDENTIALS@github.com > ~/.git-credentials

git commit -am "Update - $(date)"

git push origin master

rm ~/.git-credentials

cd ..

rm -rf cycle-ecosystem/.git
rm -r cycle-ecosystem

git clone https://github.com/Widdershin/cycle-ecosystem.git

# Yeah, I clone my repo into my repo, wanna fight about it?

cd cycle-ecosystem

cp -r ../node_modules .

./node_modules/babel-cli/bin/babel-node.js update.js

git config credential.helper store

echo https://$GIT_CREDENTIALS@github.com > ~/.git-credentials

git commit -am "Update - $(date)"

git push origin master

rm ~/.git-credentials

cd ..

rm -rf cycle-ecosystem/.git
rm -r cycle-ecosystem

--- 
+++ 
@@ -7,9 +7,6 @@
 cp -r ../node_modules .
 
 ./node_modules/babel-cli/bin/babel-node.js update.js
-
-git config user.email "ncwjohnstone@gmail.com"
-git config user.name "Nick Johnstone (heroku auto update)"
 
 git config credential.helper store
 
Configure name and email in heroku update script
