verbose output if debug is activated

This commit is contained in:
Flummi committed 2016-10-23 00:10:45 +02:00
1 parent 822b72d560
commit 42b84c134c
2 files changed
+10 -4

No files matched your search

+4 -2
View File
@@ -9,8 +9,10 @@ module.exports = (lib) => {
func: (e) => {
exec('cd ../../ & git pull', (error, stdout) => {
if(error === null) {
e.reply( 'git pull suxxessfully.' );
//e.reply(stdout);
if(!lib.debug)
e.reply('git pull suxxessfully.');
else
lib.log(stdout);
}
});
},