Commit 33c924ff authored by Family Friendly#0001's avatar Family Friendly#0001 💬

t

parent feedc1f9
......@@ -48,8 +48,11 @@ exports.updates = (conf) => {
console.log(`- ${data[0].release.description}`)
if(conf.main.aupdate) {
console.log(`auto update: ${chalk.green("true : updating")}`)
exec('git pull https://gitlab.com/familyfriendly/mcutil.git',(error,stdout,stderr) => {
console.log(stdout)
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)
});
} else {
console.log(`auto update: ${chalk.red("false : not updating")}`)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment