This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var exec = require('child_process').exec; | |
// alternative ultra-short ECMA2015 version | |
// setInterval(a=>require('child_process').exec('git pull',(b,c,d)=>{console.log(b||c||d)}),6e4) | |
setInterval(function() { | |
exec('git pull', puts); | |
}, 60 * 1000); | |
function puts(error, stdout, stderr) { |