From 4994858c8d0cacdebd0e4ba2d7b312bea6e27eff Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Mon, 13 Jun 2022 15:18:22 -0500 Subject: [PATCH] Fix type errors in nextflow installer --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index c56199e..adaeff0 100644 --- a/index.js +++ b/index.js @@ -88,8 +88,9 @@ async function install_nextflow(url, version) { ); const temp_install_dir = fs.mkdtempSync(`nxf-${version}`); + const nf_path = `${temp_install_dir}/nextflow`; - const nf_path = await io.mv(nf_dl_path, `${temp_install_dir}/nextflow`); + io.mv(nf_dl_path, nf_path); fs.chmod(nf_path, "+x"); return temp_install_dir;