Skip to content

Commit 318a743

Browse files
committed
Correct condition style for determining musl ldd
1 parent 7c54eba commit 318a743

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rustup-init.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ get_architecture() {
172172
if [ "$(uname -o)" = Android ]; then
173173
_ostype=Android
174174
fi
175-
if [ "$(ldd --version 2>&1 | grep 'musl')" ]; then
175+
if ldd --version 2>&1 | grep -q 'musl'; then
176176
_clibtype="musl"
177177
fi
178178
fi

0 commit comments

Comments
 (0)