forked from GitHub/dbot
greload updates submodules [#100]
This commit is contained in:
parent
e9c4be17a1
commit
b50f4d25b8
@ -44,10 +44,12 @@ var admin = function(dbot) {
|
|||||||
|
|
||||||
// Do a git pull and reload
|
// Do a git pull and reload
|
||||||
'greload': function(event) {
|
'greload': function(event) {
|
||||||
var child = exec("git pull", function (error, stdout, stderr) {
|
exec("git pull", function (error, stdout, stderr) {
|
||||||
|
exec("git submodule update", function (error, stdout, stderr) {
|
||||||
event.reply(dbot.t('gpull'));
|
event.reply(dbot.t('gpull'));
|
||||||
commands.reload(event);
|
commands.reload(event);
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
|
}.bind(this));
|
||||||
},
|
},
|
||||||
|
|
||||||
// Reload DB, translations and modules.
|
// Reload DB, translations and modules.
|
||||||
|
Loading…
Reference in New Issue
Block a user