Skip to content

Commit

Permalink
fix: store the temporary brew script in homedir instead of tempdir
Browse files Browse the repository at this point in the history
  • Loading branch information
angrybayblade committed Jun 6, 2024
1 parent 8783c07 commit 579fd78
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion electron/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,12 @@ function isBrewInstalled() {
}

function installBrew() {
const tempfile = `${fs.mkdtempSync("pearl_brew_install")}/install.sh`
const tempfile = `${os.homedir()}/brew.sh`
console.log(appendLog("Writing brew installation script"))
fs.writeFileSync(tempfile, BrewScript, { "encoding": "utf-8" })
console.log(appendLog("Running brew installation script"))
runCmdUnix('bash', [tempfile]);
fs.rmSync(tempfile)
}

function isTendermintInstalledUnix() {
Expand Down

0 comments on commit 579fd78

Please sign in to comment.