Commit e804765f authored by tuncer's avatar tuncer
Browse files

bootstrap.sh: SC2015

Note that A && B || C is not if-then-else. C may run when A is true.
parent 9d0c0c03
......@@ -68,8 +68,12 @@ done
# Find the correct linker/linker-wrapper.
LINK="$(for link in collect2 ld; do
[ $($CC -print-prog-name=$link) = $link ] && continue ||
$CC -print-prog-name=$link
if [ $($CC -print-prog-name=$link) = $link ]
then
continue
else
$CC -print-prog-name=$link
fi
done)"
# Fall back to "ld"... might work.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment