mirror of
https://github.com/taiki-e/install-action.git
synced 2026-04-24 08:10:49 +00:00
Tweak scripts
This commit is contained in:
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -132,7 +132,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
set -euxo pipefail
|
set -euxo pipefail
|
||||||
apt-get -o Acquire::Retries=10 -qq update
|
apt-get -o Acquire::Retries=10 -qq update
|
||||||
apt-get -o Acquire::Retries=10 -qq -o Dpkg::Use-Pty=0 install -y --no-install-recommends cargo
|
apt-get -o Acquire::Retries=10 -o Dpkg::Use-Pty=0 install -y --no-install-recommends cargo
|
||||||
if: startsWith(matrix.container, 'ubuntu') || startsWith(matrix.container, 'debian')
|
if: startsWith(matrix.container, 'ubuntu') || startsWith(matrix.container, 'debian')
|
||||||
- name: Install requirements (fedora/rockylinux)
|
- name: Install requirements (fedora/rockylinux)
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
4
main.sh
4
main.sh
@@ -261,9 +261,9 @@ apt_install() {
|
|||||||
apt_update
|
apt_update
|
||||||
fi
|
fi
|
||||||
if type -P sudo &>/dev/null; then
|
if type -P sudo &>/dev/null; then
|
||||||
retry sudo apt-get -o Acquire::Retries=10 -qq -o Dpkg::Use-Pty=0 install -y --no-install-recommends "$@"
|
retry sudo apt-get -o Acquire::Retries=10 -o Dpkg::Use-Pty=0 install -y --no-install-recommends "$@"
|
||||||
else
|
else
|
||||||
retry apt-get -o Acquire::Retries=10 -qq -o Dpkg::Use-Pty=0 install -y --no-install-recommends "$@"
|
retry apt-get -o Acquire::Retries=10 -o Dpkg::Use-Pty=0 install -y --no-install-recommends "$@"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
apt_remove() {
|
apt_remove() {
|
||||||
|
|||||||
Reference in New Issue
Block a user