Skip to content

Commit

Permalink
chore: fix directory
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoreira-valory committed Jul 24, 2024
1 parent 53ec8ea commit 4e51597
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions electron/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@ async function downloadFile(url, dest) {
}

async function installTendermintUnix() {
logger.electron(`Installing tendermint for ${os.platform()}-${process.arch}`);
const cwd = process.cwd();
process.chdir(paths.tempDir);

logger.electron(`Installing tendermint for ${os.platform()}-${process.arch}`);
const url = TendermintUrls[os.platform()][process.arch];

logger.electron(`Downloading ${url}, might take a while...`);
Expand All @@ -136,7 +136,7 @@ async function installTendermintUnix() {
if (!fs.existsSync('/usr/local/bin')) {
await runSudoUnix('mkdir', '/usr/local/bin');
}
await runSudoUnix('install', 'tendermint /usr/local/bin/tendermint');
await runSudoUnix('install', `${paths.tempDir}/tendermint /usr/local/bin/tendermint`);
}
process.chdir(cwd);
}
Expand Down

0 comments on commit 4e51597

Please sign in to comment.