Skip to content

Commit 10686af

Browse files
Merge pull request #3 from Explosion-Scratch/fix-mountdir-error
Fix mountDir scoping error in DMG installation
2 parents f51d59f + 13d61a6 commit 10686af

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/installer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,8 +650,8 @@ const installSelected = async (selected, downloadPath, log, yesFlag = false) =>
650650
case "dmg":
651651
installationMethod = "dmg";
652652

653+
const mountDir = path.join(tmpdir, "dmg-mount");
653654
try {
654-
const mountDir = path.join(tmpdir, "dmg-mount");
655655
fs.mkdirSync(mountDir, { recursive: true });
656656
mountDMG(downloadPath, mountDir, log);
657657
let dmgBinaries = getBinaries(mountDir);

0 commit comments

Comments
 (0)