From 373ae3281e3fe9e8e8da966b10419d9a7ac78ad5 Mon Sep 17 00:00:00 2001 From: Mirotin Artem Date: Sat, 7 Mar 2026 19:43:55 +0300 Subject: [PATCH] Update install.sh --- install.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 006d33c..7516748 100644 --- a/install.sh +++ b/install.sh @@ -29,11 +29,13 @@ detect_arch() { } detect_libc() { - if command -v ldd >/dev/null 2>&1 && ldd --version 2>&1 | grep -iq musl; then - printf 'musl\n' - else - printf 'gnu\n' + if command -v ldd >/dev/null 2>&1; then + if ldd --version 2>&1 | grep -iq musl; then + printf 'musl\n' + return + fi fi + printf 'gnu\n' } fetch_to_stdout() {