mirror of
https://github.com/ivabus/pantry
synced 2024-11-30 04:05:06 +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`,
|
||||
# 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
|
||||
|
|
Loading…
Reference in a new issue