Skip to content

Commit 76fbd13

Browse files
committed
Fixed Alpine native package installed check
1 parent c512776 commit 76fbd13

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

scripts/common/package-management.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,8 @@ function is_native_package_installed() {
8484
local PACKAGE_NAME="${1}"
8585

8686
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
87+
call_package_manager info -e "${PACKAGE_NAME}" >/dev/null 2>&1
88+
return $?
9289
elif [ "${DISTRO_FAMILY}" = 'Arch' ]; then
9390
if (pacman -Q | grep -q "^${PACKAGE_NAME}\s" > /dev/null); then
9491
return 0 # True

0 commit comments

Comments
 (0)