We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b120d18 + 5137ef9 commit 401420aCopy full SHA for 401420a
1 file changed
common/nvme
@@ -65,7 +65,7 @@ _require_nvme_trtype_is_fabrics() {
65
_have_nvme_cli_with_json_support() {
66
_have_program nvme || return $?
67
68
- if ! nvme list --output-format=json &> /dev/null; then
+ if ! nvme list --help 2>&1 | grep -q json; then
69
SKIP_REASONS+=("nvme-cli does not support json output format")
70
return 1
71
fi
0 commit comments