Fix test for download, only test if licenseDir exists

This commit is contained in:
Dave Olsthoorn 2020-08-26 18:51:04 +02:00
parent 24b7e80ade
commit 331008df41
2 changed files with 2 additions and 2 deletions

2
dist/index.js vendored

File diff suppressed because one or more lines are too long

View file

@ -21,7 +21,7 @@ async function install(): Promise<string> {
const licenseDir = path.join(ANDROID_SDK_ROOT, 'licenses') const licenseDir = path.join(ANDROID_SDK_ROOT, 'licenses')
// If the licences exist, the rest does too // If the licences exist, the rest does too
if (fs.existsSync(licenseDir) && fs.existsSync(ANDROID_REPOSITORIES_CFG)) { if (fs.existsSync(licenseDir)) {
core.debug(`Skipping install, licenseDir found: ${licenseDir}`) core.debug(`Skipping install, licenseDir found: ${licenseDir}`)
return ANDROID_SDK_ROOT return ANDROID_SDK_ROOT
} }