setup.sh: redirect 'hash lsblk' output to /dev/null

We are checking if lsblk exists already, but when it
doesn't let's not emit that detail to the user.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I34fedcc97fb7091229a11b2592cb7bd21a032b5b
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14834
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
This commit is contained in:
Jim Harris 2022-10-03 22:51:57 +00:00 committed by Konrad Sztyber
parent dcf30711ef
commit 274a9ffbd5

View File

@ -207,7 +207,7 @@ function get_used_bdf_block_devs() {
local blocks block blockp dev mount holder
local used
hash lsblk || return 1
hash lsblk &> /dev/null || return 1
blocks=($(get_block_dev_from_bdf "$bdf"))
for block in "${blocks[@]}"; do