mirror of
https://github.com/actions/setup-python.git
synced 2025-04-24 15:32:13 +00:00
Add silent exec output
This commit is contained in:
parent
655506db87
commit
2dd90ca26f
2 changed files with 6 additions and 2 deletions
4
dist/setup/index.js
vendored
4
dist/setup/index.js
vendored
|
@ -65484,7 +65484,9 @@ function isCacheFeatureAvailable() {
|
||||||
exports.isCacheFeatureAvailable = isCacheFeatureAvailable;
|
exports.isCacheFeatureAvailable = isCacheFeatureAvailable;
|
||||||
function getLinuxOSReleaseInfo() {
|
function getLinuxOSReleaseInfo() {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
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 osVersion = '';
|
||||||
let osRelease = '';
|
let osRelease = '';
|
||||||
versionId.stdout.split('\n').forEach(elem => {
|
versionId.stdout.split('\n').forEach(elem => {
|
||||||
|
|
|
@ -122,7 +122,9 @@ export function isCacheFeatureAvailable(): boolean {
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function getLinuxOSReleaseInfo() {
|
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 osVersion = '';
|
||||||
let osRelease = '';
|
let osRelease = '';
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue