Skip to content

Commit 331008d

Browse files
committed
Fix test for download, only test if licenseDir exists
1 parent 24b7e80 commit 331008d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ async function install(): Promise<string> {
2121
const licenseDir = path.join(ANDROID_SDK_ROOT, 'licenses')
2222

2323
// If the licences exist, the rest does too
24-
if (fs.existsSync(licenseDir) && fs.existsSync(ANDROID_REPOSITORIES_CFG)) {
24+
if (fs.existsSync(licenseDir)) {
2525
core.debug(`Skipping install, licenseDir found: ${licenseDir}`)
2626
return ANDROID_SDK_ROOT
2727
}

0 commit comments

Comments
 (0)