diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-02-24 14:06:56 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-02-24 14:06:56 +0100 |
commit | 6faa469bf58143db0ee95b25244b8e4b91e757a6 (patch) | |
tree | 76f1d454e73fa0d769d49f778158599c3fa923a6 /lib/cli | |
parent | eeefac49646447bb2f57a57eea64e469d660b8d0 (diff) | |
download | gitbook-6faa469bf58143db0ee95b25244b8e4b91e757a6.zip gitbook-6faa469bf58143db0ee95b25244b8e4b91e757a6.tar.gz gitbook-6faa469bf58143db0ee95b25244b8e4b91e757a6.tar.bz2 |
Fix install command: load config before running install
Diffstat (limited to 'lib/cli')
-rw-r--r-- | lib/cli/index.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/cli/index.js b/lib/cli/index.js index c15d04a..05f97b0 100644 --- a/lib/cli/index.js +++ b/lib/cli/index.js @@ -46,7 +46,11 @@ module.exports = { ], exec: helper.bookCmd(function(book, args) { var plugins = new PluginsManager(book); - return plugins.install(); + + return book.config.load() + .then(function() { + return plugins.install(); + }); }) }, |