mirror of
https://gitea.com/actions/setup-android.git
synced 2025-12-15 12:57:04 +00:00
Comments about mkdir/rmdir
This commit is contained in:
@@ -117,12 +117,14 @@ async function installSdkManager(): Promise<string> {
|
|||||||
CMDLINE_TOOLS_VERSION
|
CMDLINE_TOOLS_VERSION
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// Create parent directory
|
||||||
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:
|
|
||||||
// https://github.com/actions/toolkit/issues/706
|
|
||||||
|
|
||||||
|
// Make sure we don't have leftover target directory (happens sometimes...)
|
||||||
if (fs.existsSync(desiredLocation)) fse.removeSync(desiredLocation)
|
if (fs.existsSync(desiredLocation)) fse.removeSync(desiredLocation)
|
||||||
|
|
||||||
|
// @TODO: use io.mv instead of fs-extra.moveSync once following issue is resolved:
|
||||||
|
// https://github.com/actions/toolkit/issues/706
|
||||||
fse.moveSync(
|
fse.moveSync(
|
||||||
path.join(cmdlineToolsExtractedLocation, 'cmdline-tools'),
|
path.join(cmdlineToolsExtractedLocation, 'cmdline-tools'),
|
||||||
desiredLocation
|
desiredLocation
|
||||||
|
|||||||
Reference in New Issue
Block a user