From 624101820a0bd79dcfc23cc8db15d5bdbf7ab3e6 Mon Sep 17 00:00:00 2001 From: nightwing Date: Tue, 21 Feb 2017 13:20:34 +0400 Subject: [PATCH] assert HOME is set since c9 can't work without it --- settings/standalone.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/settings/standalone.js b/settings/standalone.js index 39d7a1c3..607dcd04 100644 --- a/settings/standalone.js +++ b/settings/standalone.js @@ -1,3 +1,5 @@ +var assert = require("assert"); + module.exports = function(manifest, installPath) { if (!manifest) { manifest = require(__dirname + "/../package.json"); @@ -19,6 +21,7 @@ module.exports = function(manifest, installPath) { readWin32Settings(); var home = process.env.HOME; + assert(home, "home directory must be set"); if (!installPath) installPath = path.join(home, ".c9");