Skip to content

Commit

Permalink
[Issue #108] Overwrite CLI Tools (#115)
Browse files Browse the repository at this point in the history
* Trying this

* Revert "Trying this"

This reverts commit 46eab8f.

* Put exists check around tools move

* Remove directory before copying over it

* Reverted indent

* Revert additional two spaces
  • Loading branch information
AceCoderLaura committed Mar 2, 2021
1 parent 0bdb2ca commit 7506bcd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ async function installSdkManager(): Promise<string> {
fs.mkdirSync(path.dirname(desiredLocation), {recursive: true})
// @TODO: use io.mv instead of fs-extra once following issue is resolved:
// https://github.com/actions/toolkit/issues/706

if (fs.existsSync(desiredLocation)) fse.removeSync(desiredLocation)

fse.moveSync(
path.join(cmdlineToolsExtractedLocation, 'cmdline-tools'),
desiredLocation
Expand Down

0 comments on commit 7506bcd

Please sign in to comment.