From eb27f48bce30a1c443f6a33c48429d91d84ec06e Mon Sep 17 00:00:00 2001 From: Katsuya Hidaka Date: Sun, 12 Feb 2023 23:02:20 +0900 Subject: [PATCH] suppress the warning to use apt-get instead of apt The warning is below: WARNING: apt does not have a stable CLI interface. Use with caution in scripts. --- .github/workflows/test.yml | 2 +- src/linux.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 59e8056..dd19b83 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,7 +26,7 @@ jobs: steps: - if: matrix.os == 'ubuntu-latest' - run: sudo apt install at-spi2-core + run: sudo apt-get install at-spi2-core - uses: actions/checkout@v3 diff --git a/src/linux.js b/src/linux.js index 769000c..f27a7a9 100644 --- a/src/linux.js +++ b/src/linux.js @@ -11,8 +11,8 @@ const REQUIRED_PACKAGES = [ ]; export async function setup(version) { - await exec.exec('sudo apt update'); - await exec.exec(`sudo apt install ${REQUIRED_PACKAGES.join(' ')}`); + await exec.exec('sudo apt-get update'); + await exec.exec(`sudo apt-get install ${REQUIRED_PACKAGES.join(' ')}`); await exec.exec(`git clone https://github.com/vslavik/diff-pdf.git -b v${version} --depth 1 ${WORKING_DIR}`); const buildOptions = {