release 4.2.0
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user