scripts/rxe_cfg: Add env switch to skip printing status header

Signed-off-by: Michal Berger <michalx.berger@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6993 (master)

(cherry picked from commit 4d52dae32a)
Change-Id: Ibc3149b5b9591826ff9aeed38457c2aa9ff747e4
Signed-off-by: Krzysztof Karas <krzysztof.karas@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7746
Tested-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Michal Berger 2021-03-22 13:26:39 +01:00 committed by Tomasz Zawadzki
parent 94abf2d8c2
commit 0896f85b59

View File

@ -172,6 +172,10 @@ print_status() {
local field field_ref fieldidx
local pad
if [[ -n $NO_HEADER ]]; then
unset -v "lines[0]"
fi
for field_ref in "${lines[@]}"; do
printf ' '
fieldidx=0