From d73068ed6ac3c9638f594a5c49e0867bd677cd39 Mon Sep 17 00:00:00 2001 From: Wojtek Mach Date: Wed, 25 Sep 2024 13:25:31 +0200 Subject: [PATCH] Fix unit tests Ref: https://github.com/erlef/setup-beam/pull/304#issuecomment-2373807154 --- dist/index.js | 2 +- src/setup-beam.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index b1a8e899..8ca5c49a 100644 --- a/dist/index.js +++ b/dist/index.js @@ -10040,7 +10040,7 @@ async function install(toolName, opts) { const bindir = path.join(cachePath, 'bin') const oldPath = path.join(cachePath, 'rebar3') const newPath = path.join(bindir, 'rebar3') - fs.mkdirSync(bindir) + fs.mkdirSync(bindir, { recursive: true }) fs.renameSync(oldPath, newPath) fs.chmodSync(newPath, 0o755) }, diff --git a/src/setup-beam.js b/src/setup-beam.js index 41babb98..9b4ecdab 100644 --- a/src/setup-beam.js +++ b/src/setup-beam.js @@ -940,7 +940,7 @@ async function install(toolName, opts) { const bindir = path.join(cachePath, 'bin') const oldPath = path.join(cachePath, 'rebar3') const newPath = path.join(bindir, 'rebar3') - fs.mkdirSync(bindir) + fs.mkdirSync(bindir, { recursive: true }) fs.renameSync(oldPath, newPath) fs.chmodSync(newPath, 0o755) },