mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
assert HOME is set since c9 can't work without it
This commit is contained in:
parent
f1a20f0ad6
commit
624101820a
@ -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");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user