release 4.2.0

This commit is contained in:
2026-10-13 16:35:14 +02:00
parent 9911f6d01d
commit 8221ac5325
18 changed files with 116 additions and 5 deletions
+7
View File
@@ -46,8 +46,15 @@ _profile_load_helpers "${BASH_SOURCE[0]}"
# checking available binaries in a fixed priority order.
# Echoes one of: apt dnf yum zypper pacman apk portage xbps nix
# Returns 1 if no known package manager could be identified.
# shellcheck disable=SC2120 # only --help is a possible argument
get_pkgmgr()
{
if [[ "${1:-}" == -h || "${1:-}" == --help ]]; then
printf "get_pkgmgr: print the package manager of the running distribution.\n"
printf "Usage: get_pkgmgr\n"
printf "Prints one of: apt dnf yum zypper pacman apk portage xbps nix (status 1 if unknown).\n"
return 0
fi
local distro_id="" distro_like=""
if [[ -r /etc/os-release ]]; then
# shellcheck disable=SC1091