mirror of
https://github.com/taiki-e/install-action.git
synced 2026-05-11 07:00:25 +00:00
Group package manager logs
This commit is contained in:
1
.github/.cspell/project-dictionary.txt
vendored
1
.github/.cspell/project-dictionary.txt
vendored
@@ -4,6 +4,7 @@ distro
|
|||||||
doas
|
doas
|
||||||
dprint
|
dprint
|
||||||
enablerepo
|
enablerepo
|
||||||
|
endgroup
|
||||||
epel
|
epel
|
||||||
grcov
|
grcov
|
||||||
incompat
|
incompat
|
||||||
|
|||||||
2
main.sh
2
main.sh
@@ -421,6 +421,7 @@ fi
|
|||||||
if ! type -P jq &>/dev/null || ! type -P curl &>/dev/null || ! type -P tar &>/dev/null; then
|
if ! type -P jq &>/dev/null || ! type -P curl &>/dev/null || ! type -P tar &>/dev/null; then
|
||||||
case "${base_distro}" in
|
case "${base_distro}" in
|
||||||
debian | fedora | alpine)
|
debian | fedora | alpine)
|
||||||
|
echo "::group::Install jq, curl, and/or tar"
|
||||||
sys_packages=()
|
sys_packages=()
|
||||||
if ! type -P curl &>/dev/null; then
|
if ! type -P curl &>/dev/null; then
|
||||||
sys_packages+=(ca-certificates curl)
|
sys_packages+=(ca-certificates curl)
|
||||||
@@ -443,6 +444,7 @@ if ! type -P jq &>/dev/null || ! type -P curl &>/dev/null || ! type -P tar &>/de
|
|||||||
fi
|
fi
|
||||||
sys_install "${sys_packages[@]}"
|
sys_install "${sys_packages[@]}"
|
||||||
fi
|
fi
|
||||||
|
echo "::endgroup::"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user