fix command -v

This commit is contained in:
edoapra 2023-09-05 16:08:31 -07:00
parent 63c6ac73fc
commit 3f625ab857
No known key found for this signature in database
GPG key ID: 48E12DA1EDE9E1B0

View file

@ -159,7 +159,7 @@ function get_mpi_lib ()
fi
done
# homebrew hwloc
if [ $(command -v pkg-config 2> /dev/null) -ne 0 ]; then
if command -v pkg-config >& /dev/null ; then
if pkg-config --exists hwloc; then
outlist="${outlist} $(pkg-config --libs-only-L hwloc 2> /dev/null) -lhwloc"
fi