Skip to content

Commit da1ab05

Browse files
Comments about mkdir/rmdir
1 parent 910b280 commit da1ab05

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,14 @@ async function installSdkManager(): Promise<string> {
117117
CMDLINE_TOOLS_VERSION
118118
)
119119

120+
// Create parent directory
120121
fs.mkdirSync(path.dirname(desiredLocation), {recursive: true})
121-
// @TODO: use io.mv instead of fs-extra once following issue is resolved:
122-
// https://github.com/actions/toolkit/issues/706
123122

123+
// Make sure we don't have leftover target directory (happens sometimes...)
124124
if (fs.existsSync(desiredLocation)) fse.removeSync(desiredLocation)
125125

126+
// @TODO: use io.mv instead of fs-extra.moveSync once following issue is resolved:
127+
// https://github.com/actions/toolkit/issues/706
126128
fse.moveSync(
127129
path.join(cmdlineToolsExtractedLocation, 'cmdline-tools'),
128130
desiredLocation

0 commit comments

Comments
 (0)