mirror of
https://github.com/actions/setup-java.git
synced 2025-04-21 02:16:45 +00:00
fix comments
This commit is contained in:
parent
1d25bcb6a7
commit
e6d2942770
6 changed files with 24 additions and 42 deletions
12
dist/cleanup/index.js
vendored
12
dist/cleanup/index.js
vendored
|
@ -1549,9 +1549,7 @@ exports.getVersionFromToolcachePath = getVersionFromToolcachePath;
|
|||
function extractJdkFile(toolPath, extension) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
if (!extension) {
|
||||
extension = toolPath.endsWith('.tar.gz')
|
||||
? 'tar.gz'
|
||||
: path_1.default.extname(toolPath);
|
||||
extension = toolPath.endsWith('.tar.gz') ? 'tar.gz' : path_1.default.extname(toolPath);
|
||||
if (extension.startsWith('.')) {
|
||||
extension = extension.substring(1);
|
||||
}
|
||||
|
@ -5091,13 +5089,7 @@ function importKey(privateKey) {
|
|||
}
|
||||
}
|
||||
};
|
||||
yield exec.exec('gpg', [
|
||||
'--batch',
|
||||
'--import-options',
|
||||
'import-show',
|
||||
'--import',
|
||||
exports.PRIVATE_KEY_FILE
|
||||
], options);
|
||||
yield exec.exec('gpg', ['--batch', '--import-options', 'import-show', '--import', exports.PRIVATE_KEY_FILE], options);
|
||||
yield io.rmRF(exports.PRIVATE_KEY_FILE);
|
||||
const match = output.match(PRIVATE_KEY_FINGERPRINT_REGEX);
|
||||
return match && match[0];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue