We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c512776 commit 76fbd13Copy full SHA for 76fbd13
1 file changed
scripts/common/package-management.sh
@@ -84,11 +84,8 @@ function is_native_package_installed() {
84
local PACKAGE_NAME="${1}"
85
86
if [ "${DISTRO_FAMILY}" = 'Alpine' ]; then
87
- if call_package_manager -e "${PACKAGE_NAME}"; then
88
- return 0 # True
89
- else
90
- return 1 # False
91
- fi
+ call_package_manager info -e "${PACKAGE_NAME}" >/dev/null 2>&1
+ return $?
92
elif [ "${DISTRO_FAMILY}" = 'Arch' ]; then
93
if (pacman -Q | grep -q "^${PACKAGE_NAME}\s" > /dev/null); then
94
return 0 # True
0 commit comments