Skip to content

Commit

Permalink
Cleanup output
Browse files Browse the repository at this point in the history
  • Loading branch information
atoomic committed Jan 2, 2024
1 parent 70a9c9d commit 8c174d9
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,13 @@ async function install_cpm(install_to) {
const version = core.getInput("version");
const url = `https://raw.githubusercontent.com/skaji/cpm/${version}/cpm`;

core.info(`Get cpm from ${url}`);
core.info(`Get cpm from URL: ${url}`);

const cpmScript = await tc.downloadTool(url);

core.info("cpm", cpmScript);

core.info(`install_to ${install_to}`);
core.info(`Install cpm to: ${install_to}`);

const platform = os.platform();
//core.info(`OS: :${platform}:`);

if (platform == "win32") {
await io.cp(cpmScript, install_to);
Expand All @@ -52,8 +49,6 @@ async function install_cpm(install_to) {
`cp("${cpmScript}", "${install_to}"); chmod(0755, "${install_to}")`,
]);
}
//await io.cp(cpmScript, install_to); /* need to run with sudo */
//await ioUtil.chmod(install_to, '0755')

return install_to;
}
Expand Down

0 comments on commit 8c174d9

Please sign in to comment.