From c0ef0815e32d4621c93920f54fba5db32895f71f Mon Sep 17 00:00:00 2001 From: jaimergp Date: Thu, 3 Oct 2024 12:44:38 +0200 Subject: [PATCH] mark as executable? --- dist/setup/index.js | 5 +++-- src/base-tools/update-mamba.ts | 7 +++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dist/setup/index.js b/dist/setup/index.js index 1665b2d9..2600e919 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -47076,11 +47076,12 @@ exports.updateMamba = { return; } mambaExec = mambaExec.replace(/\\/g, "/"); - core.info(`Creating bash wrapper for 'mamba' in '${mambaExec.slice(0, -4)}'...`); + core.info(`Creating bash wrapper for 'mamba'...`); // Add bat-less forwarder for bash users on Windows const contents = `bash.exe -c "exec '${mambaExec}' $*" || exit 1`; fs.writeFileSync(mambaExec.slice(0, -4), contents); - core.info(`... wrote ${mambaExec}:\n${contents}`); + fs.chmodSync(mambaExec.slice(0, -4), "755"); + core.info(`... wrote ${mambaExec.slice(0, -4)}:\n${contents}`); }), }; diff --git a/src/base-tools/update-mamba.ts b/src/base-tools/update-mamba.ts index c53c005a..4748cac1 100644 --- a/src/base-tools/update-mamba.ts +++ b/src/base-tools/update-mamba.ts @@ -43,12 +43,11 @@ export const updateMamba: types.IToolProvider = { return; } mambaExec = mambaExec.replace(/\\/g, "/"); - core.info( - `Creating bash wrapper for 'mamba' in '${mambaExec.slice(0, -4)}'...`, - ); + core.info(`Creating bash wrapper for 'mamba'...`); // Add bat-less forwarder for bash users on Windows const contents = `bash.exe -c "exec '${mambaExec}' $*" || exit 1`; fs.writeFileSync(mambaExec.slice(0, -4), contents); - core.info(`... wrote ${mambaExec}:\n${contents}`); + fs.chmodSync(mambaExec.slice(0, -4), "755"); + core.info(`... wrote ${mambaExec.slice(0, -4)}:\n${contents}`); }, };