From 63cdca158a071d97d29426528807be0cf1bfb8a1 Mon Sep 17 00:00:00 2001 From: MaksimZhukov Date: Tue, 28 Apr 2020 15:23:22 +0300 Subject: [PATCH] Remove condition with sudo --- .github/workflows/test.yml | 2 +- dist/index.js | 5 +---- src/install-python.ts | 4 +--- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a0209143..618a695e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -33,7 +33,7 @@ jobs: fail-fast: false matrix: os: [macos-latest, windows-latest, ubuntu-16.04, ubuntu-18.04] - python: [3.5.3, 3.6.7, 3.7.5, 3.8.1] + python: [3.5.4, 3.6.6, 3.7.4, 3.8.1] steps: - name: Checkout uses: actions/checkout@v2 diff --git a/dist/index.js b/dist/index.js index 7036e7cd..9d31c469 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2623,11 +2623,8 @@ function installPython(workingDirectory) { if (IS_WINDOWS) { yield exec.exec('powershell', ['./setup.ps1'], options); } - else if (IS_MACOS) { - yield exec.exec('bash', ['./setup.sh'], options); - } else { - yield exec.exec('sudo', ['-n', 'bash', './setup.sh'], options); + yield exec.exec('bash', ['./setup.sh'], options); } }); } diff --git a/src/install-python.ts b/src/install-python.ts index 4cc83eee..b21f3b9c 100644 --- a/src/install-python.ts +++ b/src/install-python.ts @@ -42,10 +42,8 @@ async function installPython(workingDirectory: string) { if (IS_WINDOWS) { await exec.exec('powershell', ['./setup.ps1'], options); - } else if (IS_MACOS) { - await exec.exec('bash', ['./setup.sh'], options); } else { - await exec.exec('sudo', ['-n', 'bash', './setup.sh'], options); + await exec.exec('bash', ['./setup.sh'], options); } }