Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Commit

Permalink
[Scripts] Fix install (path) on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCommieAxolotl committed Jul 8, 2022
1 parent 0a136bf commit 63fbcc8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ async function run() {
else if (selected === "Contents") appPath = path.join(proposedPath, "Resources");
else if (selected === "Resources") appPath = proposedPath;
else appPath = proposedPath;
} else {
appPath = proposedPath;
}

console.log(`Preparing to install to '${appPath}'`);
Expand All @@ -144,7 +146,6 @@ async function run() {
if (fs.existsSync(path.join(appPath, "app"))) {
console.error("A Discord Client Modification is already installed in this directory.");
console.log("Overwriting existing files...");
// return false;
} else {
await mkdir(path.join(appPath, "app"));
}
Expand Down
2 changes: 2 additions & 0 deletions scripts/uninstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ async function run() {
else if (selected === "Contents") appPath = path.join(proposedPath, "Resources");
else if (selected === "Resources") appPath = proposedPath;
else appPath = proposedPath;
} else {
appPath = proposedPath;
}

console.log(`Preparing to uninstall from '${appPath}'`);
Expand Down

0 comments on commit 63fbcc8

Please sign in to comment.