Skip to content

Commit e1efda0

Browse files
committed
_build.sh: fix typo in head command in musl version query
1 parent c4b1303 commit e1efda0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1639,7 +1639,7 @@ build_single_target() {
16391639
# Terrible hack to retrieve musl version
16401640
libcver="$(grep -a -m1 -o -E '\x00[0-9]+\.[0-9]+\.[0-9]+\x00' "${brew_root}/opt/musl-cross/libexec/${_machine}-linux-musl/lib/libc.so" | head -n 1 || true)"
16411641
fi
1642-
[ -n "${libcver}" ] || libcver="$(dpkg-query --showformat='${Version}\n' --show musl | head -n -1 || true)"
1642+
[ -n "${libcver}" ] || libcver="$(dpkg-query --showformat='${Version}\n' --show musl | head -n 1 || true)"
16431643
[ -n "${libcver}" ] || libcver="$(rpm --query --queryformat '.%{VERSION}' musl-devel || true)"
16441644
if [ -z "${libcver}" ]; then
16451645
[ -n "${libcver}" ] || libcver="$(pacman --query --info musl || true)"

0 commit comments

Comments
 (0)