From 2897cdfd8c2fe5b23a220c1b3b134c46081a267f Mon Sep 17 00:00:00 2001 From: Sam Umbach Date: Tue, 28 Nov 2023 14:55:02 -0500 Subject: [PATCH] fix: Assume glibc when `ldd` command not present. fix #44 Signed-off-by: Sam Umbach --- lib/utils.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils.bash b/lib/utils.bash index 7b5b9c6..155dc4c 100755 --- a/lib/utils.bash +++ b/lib/utils.bash @@ -51,7 +51,7 @@ detect_architecture() { } detect_variant() { - case "$(ldd /bin/sh)" in + case "$(command -v ldd >/dev/null && ldd /bin/sh)" in *musl*) echo '-musl';; *) echo ''; esac