mirror of
https://github.com/actions/setup-python.git
synced 2025-04-21 22:38:43 +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;
|
||||
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 => {
|
||||
|
|
|
@ -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 = '';
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue