Skip to content

Commit

Permalink
fix: Assume glibc when ldd command not present. fix #44
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Umbach <samumbach@gmail.com>
  • Loading branch information
sumbach committed Nov 28, 2023
1 parent 9643c7d commit 2897cdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2897cdf

Please sign in to comment.