mirror of
https://github.com/reality/dbot.git
synced 2024-11-23 20:39:25 +01:00
greload updates submodules [#100]
This commit is contained in:
parent
e9c4be17a1
commit
b50f4d25b8
@ -44,9 +44,11 @@ var admin = function(dbot) {
|
||||
|
||||
// Do a git pull and reload
|
||||
'greload': function(event) {
|
||||
var child = exec("git pull", function (error, stdout, stderr) {
|
||||
event.reply(dbot.t('gpull'));
|
||||
commands.reload(event);
|
||||
exec("git pull", function (error, stdout, stderr) {
|
||||
exec("git submodule update", function (error, stdout, stderr) {
|
||||
event.reply(dbot.t('gpull'));
|
||||
commands.reload(event);
|
||||
}.bind(this));
|
||||
}.bind(this));
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user