Skip to content

Commit

Permalink
mark as executable?
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimergp committed Oct 3, 2024
1 parent e63b3bf commit c0ef081
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
5 changes: 3 additions & 2 deletions dist/setup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
}),
};

Expand Down
7 changes: 3 additions & 4 deletions src/base-tools/update-mamba.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
},
};

0 comments on commit c0ef081

Please sign in to comment.