Skip to content

Commit

Permalink
Fixed crash when user not found
Browse files Browse the repository at this point in the history
  • Loading branch information
dapetcu21 committed Mar 6, 2014
1 parent ce2661c commit 7e227d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/base.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7e227d9

Please sign in to comment.