Skip to content
Browse files

Fix: don't try to mkdir() an empty string

  • Loading branch information...
1 parent 5197551 commit 30a8ef6a13334b2ce13cb776af58d24d4e1941ac @fgnass fgnass committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/config.js
View
4 lib/config.js
@@ -49,8 +49,8 @@ exports.writeApp = function(appname, folder) {
if (!folder) {
folder = '';
}
- if(!exists(folder)){
- fs.mkdirSync(folder, '0777');
+ else if(!exists(folder)) {
+ fs.mkdirSync(folder, '0777');
}
var config_file = path.join("./" + folder, "." + process.nodester.brand + ".appconfig");
log.info('Writing app data to config in ' + config_file);

0 comments on commit 30a8ef6

Please sign in to comment.
Something went wrong with that request. Please try again.