mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 18:25:08 +03:00
Remove spurious output
This commit is contained in:
parent
b814c21be3
commit
e49f2be09c
1 changed files with 2 additions and 2 deletions
|
@ -8,12 +8,12 @@ PATH=$(echo "$PATH" | tr ":" "\n" | grep -v "$dir" | tr "\n" ":")
|
||||||
|
|
||||||
# If we can find our specific name, e.g. `lld`,
|
# If we can find our specific name, e.g. `lld`,
|
||||||
# passthrough to that
|
# passthrough to that
|
||||||
if which "$exe" 2>&1; then
|
if which "$exe" >/dev/null 2>&1; then
|
||||||
exe=$(which "$exe")
|
exe=$(which "$exe")
|
||||||
# Otherwise, fallback to `ld`
|
# Otherwise, fallback to `ld`
|
||||||
# NB: this might not have the right invocations, sometimes;
|
# NB: this might not have the right invocations, sometimes;
|
||||||
# (invoking `ld` as `lld64.ld`) watch for those potential cases
|
# (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)
|
exe=$(which ld)
|
||||||
else
|
else
|
||||||
echo 'ld not found in PATH' >&2
|
echo 'ld not found in PATH' >&2
|
||||||
|
|
Loading…
Reference in a new issue