Skip to content

Commit 401420a

Browse files
authored
Merge pull request #179 from yizhanglinux/nvme-json-fix
common/nvme: fix nvme json support check in _have_nvme_cli_with_json_support
2 parents b120d18 + 5137ef9 commit 401420a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

common/nvme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ _require_nvme_trtype_is_fabrics() {
6565
_have_nvme_cli_with_json_support() {
6666
_have_program nvme || return $?
6767

68-
if ! nvme list --output-format=json &> /dev/null; then
68+
if ! nvme list --help 2>&1 | grep -q json; then
6969
SKIP_REASONS+=("nvme-cli does not support json output format")
7070
return 1
7171
fi

0 commit comments

Comments
 (0)