From 3f625ab8573da3d863a0da775a0dd16e28535eab Mon Sep 17 00:00:00 2001 From: edoapra Date: Tue, 5 Sep 2023 16:08:31 -0700 Subject: [PATCH] fix command -v --- src/tools/guess-mpidefs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/guess-mpidefs b/src/tools/guess-mpidefs index cc5b64a7d8..afe350e630 100755 --- a/src/tools/guess-mpidefs +++ b/src/tools/guess-mpidefs @@ -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