verbose output if debug is activated
This commit is contained in:
parent
822b72d560
commit
42b84c134c
@ -9,8 +9,10 @@ module.exports = (lib) => {
|
|||||||
func: (e) => {
|
func: (e) => {
|
||||||
exec('cd ../../ & git pull', (error, stdout) => {
|
exec('cd ../../ & git pull', (error, stdout) => {
|
||||||
if(error === null) {
|
if(error === null) {
|
||||||
e.reply( 'git pull suxxessfully.' );
|
if(!lib.debug)
|
||||||
//e.reply(stdout);
|
e.reply('git pull suxxessfully.');
|
||||||
|
else
|
||||||
|
lib.log(stdout);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -46,8 +46,12 @@ function Websrv(tlib) {
|
|||||||
lib.bot.send( lib.cfg.debugchannel, eventname + ' from ' + autor + ' ('+commit+') in branch '+branch, 'n0xy' );
|
lib.bot.send( lib.cfg.debugchannel, eventname + ' from ' + autor + ' ('+commit+') in branch '+branch, 'n0xy' );
|
||||||
if( lib.cfg.debugchannel === '#f0ck' ) {
|
if( lib.cfg.debugchannel === '#f0ck' ) {
|
||||||
exec('cd ../ & git pull', (error, stdout) => {
|
exec('cd ../ & git pull', (error, stdout) => {
|
||||||
if(error === null)
|
if(error === null) {
|
||||||
lib.bot.send( lib.cfg.debugchannel, 'git pull suxxessfully.', 'n0xy' );
|
if(!lib.debug)
|
||||||
|
lib.bot.send(lib.cfg.debugchannel, 'git pull suxxessfully.', 'n0xy');
|
||||||
|
else
|
||||||
|
lib.log(stdout);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user