From 7eb2b60855603d0a194ff22888053c8be202062d Mon Sep 17 00:00:00 2001 From: Alexey <247128645+axkurcom@users.noreply.github.com> Date: Sat, 7 Mar 2026 19:49:45 +0300 Subject: [PATCH] Update install.sh --- install.sh | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/install.sh b/install.sh index 7516748..9d96f0e 100644 --- a/install.sh +++ b/install.sh @@ -29,13 +29,10 @@ detect_arch() { } detect_libc() { - 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' + case "$(ldd --version 2>&1 || true)" in + *musl*) printf 'musl\n' ;; + *) printf 'gnu\n' ;; + esac } fetch_to_stdout() {