...
 
Commits (2)
version=2
version=3
[main]
; swe/en
locale=en
......
......@@ -48,12 +48,17 @@ exports.updates = (conf) => {
console.log(`- ${data[0].release.description}`)
if(conf.main.aupdate) {
console.log(`auto update: ${chalk.green("true : updating")}`)
exec('git fetch https://gitlab.com/familyfriendly/mcutil.git --all',(error,stdout,stderr) => {
console.log(error,stdout,stderr)
});
exec('git reset --hard origin/master',(error,stdout,stderr) => {
console.log(error,stdout,stderr)
exec('git fetch https://gitlab.com/familyfriendly/mcutil.git && git reset --hard origin/master && git clean -f -d',(error,stdout,stderr) => {
console.log(`
error: ${error ? "true":"false"}
${error ? `- ${error}`:""}
stdout: ${stdout ? "true":"false"}
${stdout ? `- ${stdout}`:""}
stderr: ${stderr ? "true":"false"}
${stderr ? `- ${stderr}`:""}
`)
});
} else {
console.log(`auto update: ${chalk.red("false : not updating")}`)
}
......