mirror of
https://github.com/actions/setup-python.git
synced 2025-04-24 15:32:13 +00:00
Send args as array
This commit is contained in:
parent
96d176662d
commit
e53798f2d2
2 changed files with 2 additions and 2 deletions
2
dist/setup/index.js
vendored
2
dist/setup/index.js
vendored
|
@ -65484,7 +65484,7 @@ 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 { stdout, stderr, exitCode } = yield exec.getExecOutput('lsb_release', ['-i -r -s'], {
|
const { stdout, stderr, exitCode } = yield exec.getExecOutput('lsb_release', ['-i', '-r', '-s'], {
|
||||||
silent: true
|
silent: true
|
||||||
});
|
});
|
||||||
const [osRelease, osVersion] = stdout.trim().split('\n');
|
const [osRelease, osVersion] = stdout.trim().split('\n');
|
||||||
|
|
|
@ -124,7 +124,7 @@ export function isCacheFeatureAvailable(): boolean {
|
||||||
export async function getLinuxOSReleaseInfo() {
|
export async function getLinuxOSReleaseInfo() {
|
||||||
const {stdout, stderr, exitCode} = await exec.getExecOutput(
|
const {stdout, stderr, exitCode} = await exec.getExecOutput(
|
||||||
'lsb_release',
|
'lsb_release',
|
||||||
['-i -r -s'],
|
['-i', '-r', '-s'],
|
||||||
{
|
{
|
||||||
silent: true
|
silent: true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue