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 authored and joke committed Nov 29, 2023
1 parent 9643c7d commit 9e7d152
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils.bash
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 9e7d152

Please sign in to comment.