mirror of
https://github.com/taiki-e/install-action.git
synced 2026-05-09 22:30:28 +00:00
Retry on apk add failure
This commit is contained in:
6
main.sh
6
main.sh
@@ -367,11 +367,11 @@ pacman_install() {
|
|||||||
}
|
}
|
||||||
apk_install() {
|
apk_install() {
|
||||||
if type -P sudo &>/dev/null; then
|
if type -P sudo &>/dev/null; then
|
||||||
sudo apk --no-cache add "$@"
|
retry sudo apk --no-cache add "$@"
|
||||||
elif type -P doas &>/dev/null; then
|
elif type -P doas &>/dev/null; then
|
||||||
doas apk --no-cache add "$@"
|
retry doas apk --no-cache add "$@"
|
||||||
else
|
else
|
||||||
apk --no-cache add "$@"
|
retry apk --no-cache add "$@"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
sys_install() {
|
sys_install() {
|
||||||
|
|||||||
Reference in New Issue
Block a user