mirror of
https://gitea.com/actions/setup-android.git
synced 2025-12-12 11:29:14 +00:00
* Trying this
* Revert "Trying this"
This reverts commit 46eab8f218.
* Put exists check around tools move
* Remove directory before copying over it
* Reverted indent
* Revert additional two spaces
This commit is contained in:
2
dist/index.js
vendored
2
dist/index.js
vendored
File diff suppressed because one or more lines are too long
@@ -120,6 +120,9 @@ async function installSdkManager(): Promise<string> {
|
|||||||
fs.mkdirSync(path.dirname(desiredLocation), {recursive: true})
|
fs.mkdirSync(path.dirname(desiredLocation), {recursive: true})
|
||||||
// @TODO: use io.mv instead of fs-extra once following issue is resolved:
|
// @TODO: use io.mv instead of fs-extra once following issue is resolved:
|
||||||
// https://github.com/actions/toolkit/issues/706
|
// https://github.com/actions/toolkit/issues/706
|
||||||
|
|
||||||
|
if (fs.existsSync(desiredLocation)) fse.removeSync(desiredLocation)
|
||||||
|
|
||||||
fse.moveSync(
|
fse.moveSync(
|
||||||
path.join(cmdlineToolsExtractedLocation, 'cmdline-tools'),
|
path.join(cmdlineToolsExtractedLocation, 'cmdline-tools'),
|
||||||
desiredLocation
|
desiredLocation
|
||||||
|
|||||||
Reference in New Issue
Block a user