Skip to content

Commit

Permalink
feat: aliyun.exe -> aliyun
Browse files Browse the repository at this point in the history
  • Loading branch information
hughcube committed Aug 7, 2020
1 parent 89b118b commit 1a34131
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ async function run() {
const downloadedPath = await tc.downloadTool(url);
const extractedPath = await tc[extractFunc](downloadedPath);

fs.copyFileSync(path.normalize(`${extractedPath}/aliyun.exe`), path.normalize(`${extractedPath}/aliyun`))
if ('win32' === platform) {
fs.copyFileSync(path.normalize(`${extractedPath}/aliyun.exe`), path.normalize(`${extractedPath}/aliyun`))
}

const cachedPath = await tc.cacheDir(extractedPath, name, version);
core.addPath(cachedPath);
Expand Down

0 comments on commit 1a34131

Please sign in to comment.