mirror of
https://github.com/zen-browser/surfer.git
synced 2025-07-07 17:05:33 +02:00
🐛 Don't create the tar directory as a parent
This commit is contained in:
parent
49c94b53b2
commit
0a64107c22
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
import execa from 'execa'
|
||||
import { existsSync } from 'fs'
|
||||
import { resolve } from 'path'
|
||||
import { dirname, resolve } from 'path'
|
||||
import { bin_name } from '../..'
|
||||
import { BASH_PATH, ENGINE_DIR, MELON_TMP_DIR } from '../../constants'
|
||||
import { log } from '../../log'
|
||||
|
@ -80,7 +80,7 @@ async function downloadFirefoxSource(version: string) {
|
|||
|
||||
log.info(`Locating Firefox release ${version}...`)
|
||||
|
||||
await ensureDir(fsSaveLocation)
|
||||
await ensureDir(dirname(fsSaveLocation))
|
||||
|
||||
if (existsSync(fsSaveLocation)) {
|
||||
log.info('Using cached download')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue