Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 657c6c5

Browse files
fixes skygragon#130: create home dir if necessary
Signed-off-by: Eric Wang <skygragon@gmail.com>
1 parent 9f5db49 commit 657c6c5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎lib/cli.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ function initLogLevel() {
5252
log.setLevel(level);
5353
}
5454

55+
function initDir() {
56+
h.mkdir(h.getHomeDir())
57+
}
58+
5559
function initPlugins(cb) {
5660
if (Plugin.init()) {
5761
Plugin.save();
@@ -90,6 +94,7 @@ cli.run = function() {
9094
initColor();
9195
initIcon();
9296
initLogLevel();
97+
initDir()
9398
initPlugins(function(e) {
9499
if (e) return log.error(e);
95100
cache.init();

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /