Group package manager logs

This commit is contained in:
Taiki Endo
2023-07-31 23:02:18 +09:00
parent b13dd10934
commit 7dd45f2345
2 changed files with 3 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ distro
doas
dprint
enablerepo
endgroup
epel
grcov
incompat

View File

@@ -421,6 +421,7 @@ fi
if ! type -P jq &>/dev/null || ! type -P curl &>/dev/null || ! type -P tar &>/dev/null; then
case "${base_distro}" in
debian | fedora | alpine)
echo "::group::Install jq, curl, and/or tar"
sys_packages=()
if ! type -P curl &>/dev/null; then
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
sys_install "${sys_packages[@]}"
fi
echo "::endgroup::"
;;
esac
fi