Skip to content

Commit

Permalink
suppress the warning to use apt-get instead of apt
Browse files Browse the repository at this point in the history
The warning is below:
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
  • Loading branch information
hidakatsuya committed Feb 12, 2023
1 parent 3587ba7 commit eb27f48
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions src/linux.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit eb27f48

Please sign in to comment.