Skip to content

Commit

Permalink
fix: refs #2 openupm search broken on CMD
Browse files Browse the repository at this point in the history
  • Loading branch information
favoyang committed Jan 12, 2020
1 parent 14b9162 commit 50eb8cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const keyFileStorage = require("key-file-storage").default;
const isIp = require("is-ip");
const log = require("./logger");
const path = require("path");
const os = require("os");
const superagent = require("superagent");
const url = require("url");
const { isConnectionError, is404Error } = require("./error-handler");
Expand Down Expand Up @@ -217,8 +218,7 @@ const saveManifest = function(data) {

// Return cache object
const getCache = function() {
const homeDir =
process.platform === "win32" ? process.env.HOMEPATH : process.env.HOME;
const homeDir = os.homedir();
const openupmDir = path.join(homeDir, ".openupm");
try {
fs.mkdirSync(openupmDir);
Expand Down

0 comments on commit 50eb8cb

Please sign in to comment.