Remove spurious output

This commit is contained in:
Max Howell 2022-11-10 17:18:57 -05:00
parent b814c21be3
commit e49f2be09c
No known key found for this signature in database
GPG key ID: 741BB84EF5BB9EEC

View file

@ -8,12 +8,12 @@ PATH=$(echo "$PATH" | tr ":" "\n" | grep -v "$dir" | tr "\n" ":")
# If we can find our specific name, e.g. `lld`,
# passthrough to that
if which "$exe" 2>&1; then
if which "$exe" >/dev/null 2>&1; then
exe=$(which "$exe")
# Otherwise, fallback to `ld`
# NB: this might not have the right invocations, sometimes;
# (invoking `ld` as `lld64.ld`) watch for those potential cases
elif which ld 2>&1; then
elif which ld >/dev/null 2>&1; then
exe=$(which ld)
else
echo 'ld not found in PATH' >&2