From 2dd90ca26f801dca56b6df8d5ab369bfc77e0d88 Mon Sep 17 00:00:00 2001 From: panticmilos Date: Mon, 18 Jul 2022 12:24:47 +0200 Subject: [PATCH] Add silent exec output --- dist/setup/index.js | 4 +++- src/utils.ts | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/dist/setup/index.js b/dist/setup/index.js index 0c8b1c87..4f8f5cf5 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -65484,7 +65484,9 @@ function isCacheFeatureAvailable() { exports.isCacheFeatureAvailable = isCacheFeatureAvailable; function getLinuxOSReleaseInfo() { return __awaiter(this, void 0, void 0, function* () { - const versionId = yield exec.getExecOutput('lsb_release', ['-a']); + const versionId = yield exec.getExecOutput('lsb_release', ['-a'], { + silent: true + }); let osVersion = ''; let osRelease = ''; versionId.stdout.split('\n').forEach(elem => { diff --git a/src/utils.ts b/src/utils.ts index 46cf677c..cf77e41f 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -122,7 +122,9 @@ export function isCacheFeatureAvailable(): boolean { } export async function getLinuxOSReleaseInfo() { - const versionId = await exec.getExecOutput('lsb_release', ['-a']); + const versionId = await exec.getExecOutput('lsb_release', ['-a'], { + silent: true + }); let osVersion = ''; let osRelease = '';