From 7e227d9300d4eff12c430b347d5dc75ea98114ca Mon Sep 17 00:00:00 2001 From: Marius Petcu Date: Thu, 6 Mar 2014 23:13:51 +0200 Subject: [PATCH] Fixed crash when user not found --- lib/base.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/base.coffee b/lib/base.coffee index 3bf9b17..5ce276c 100644 --- a/lib/base.coffee +++ b/lib/base.coffee @@ -8,7 +8,7 @@ mkdirp = require 'mkdirp' class Base constructor: -> - user = (osenv.user() || generate_fake_user()).replace(/\\/g, '-') + user = (osenv.user() || @generate_fake_user()).replace(/\\/g, '-') tmp_dir = path.join((if os.tmpdir then os.tmpdir() else os.tmpDir()), user) @config_dir = process.env.XDG_CONFIG_HOME || path.join((osenv.home() || tmp_dir), '.config/sprout') if not fs.existsSync(@config_dir) then mkdirp.sync(@config_dir)