From 9f0c2dfa0d60de362482a6afb56689607e210a54 Mon Sep 17 00:00:00 2001 From: Danny McCormick Date: Mon, 15 Jul 2019 14:00:08 -0400 Subject: [PATCH] Fix --- lib/installer.js | 5 ++++- src/installer.ts | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/installer.js b/lib/installer.js index 30d76bdc..163f5d8e 100644 --- a/lib/installer.js +++ b/lib/installer.js @@ -49,10 +49,13 @@ function getJava(version, arch, jdkFile) { else { let compressedFileExtension = ''; if (!jdkFile) { + core.debug('Downloading Jdk from Azul'); jdkFile = yield downloadJava(version); compressedFileExtension = IS_WINDOWS ? '.zip' : '.tar.gz'; } - core.debug('Retrieving Jdk from local path'); + else { + core.debug('Retrieving Jdk from local path'); + } compressedFileExtension = compressedFileExtension || getFileEnding(jdkFile); let tempDir = path.join(tempDirectory, 'temp_' + Math.floor(Math.random() * 2000000000)); const jdkDir = yield unzipJavaDownload(jdkFile, compressedFileExtension, tempDir); diff --git a/src/installer.ts b/src/installer.ts index bf5d2163..f182f41e 100644 --- a/src/installer.ts +++ b/src/installer.ts @@ -37,10 +37,12 @@ export async function getJava( } else { let compressedFileExtension = ''; if (!jdkFile) { + core.debug('Downloading Jdk from Azul'); jdkFile = await downloadJava(version); compressedFileExtension = IS_WINDOWS ? '.zip' : '.tar.gz'; + } else { + core.debug('Retrieving Jdk from local path'); } - core.debug('Retrieving Jdk from local path'); compressedFileExtension = compressedFileExtension || getFileEnding(jdkFile); let tempDir: string = path.join( tempDirectory,