Skip to content

Commit 2ce85ed

Browse files
committed
Use grep instead of sed to test for Arch Linux
pacman is more of a common name that is not unique to package managers (e.g. retro game) so check the distro is Arch Linux first before assuming pacman is a package manager
1 parent d54b479 commit 2ce85ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packaging/packager

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ if ! type zip > /dev/null 2>&1; then
5656
exit 1
5757
fi
5858
function package_libc_via_pacman {
59-
if [[ $(sed '/ID_LIKE/!d;s/ID_LIKE=//' < /etc/os-release) == "archlinux" ]]; then
59+
if grep "Arch Linux" < /etc/os-release > /dev/null 2>&1; then
6060
if type pacman > /dev/null 2>&1; then
6161
pacman --files --list --quiet glibc | sed -E '/\.so$|\.so\.[0-9]+$/!d'
6262
fi

0 commit comments

Comments
 (0)