Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const colors = require('colors');
const download = require('download-git-repo');
const shell = require('shelljs');
const ora = require('ora');
const os = require("os");
const fs = require('fs-extra');
const ip = require('ip');
const path = require('path');
Expand All @@ -16,9 +17,7 @@ const spinner = ora();
* Returns the absolute installation path for Sonos Web
*/
function absoluteInstallPath() {
shell.cd('~');
const absolutePath = `${shell.pwd().stdout}/.sonos-web`;
return absolutePath;
return `${os.homedir()}/.sonos-web`;
}

const foreverPath = `${path.dirname(require.resolve('forever/package.json'))}/bin/forever`;
Expand Down