mirror of
https://github.com/taiki-e/install-action.git
synced 2026-04-08 18:05:42 +08: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() {
|
||||
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
|
||||
doas apk --no-cache add "$@"
|
||||
retry doas apk --no-cache add "$@"
|
||||
else
|
||||
apk --no-cache add "$@"
|
||||
retry apk --no-cache add "$@"
|
||||
fi
|
||||
}
|
||||
sys_install() {
|
||||
|
||||
Reference in New Issue
Block a user