From 277730393da1990004b1752fc59a45ee06fbd158 Mon Sep 17 00:00:00 2001 From: Lars Kruse Date: Thu, 8 Mar 2018 03:00:18 +0100 Subject: [PATCH] zpool_iostat: fix 'checkbashisms' issue It was not a shell syntax problem - but just a checkbashisms issue. --- plugins/zfs/zpool_iostat | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/zfs/zpool_iostat b/plugins/zfs/zpool_iostat index 63400422..0e655f58 100755 --- a/plugins/zfs/zpool_iostat +++ b/plugins/zfs/zpool_iostat @@ -71,8 +71,7 @@ get_device_iostat_column() { local stat_column="$2" # convert all numeric values into kB echo "$iostats" \ - | gawk '{ if ($1 == "'"$device_label"'") - print $'"$stat_column"'; }' \ + | gawk '{ if ($1 == "'"$device_label"'") print $'"$stat_column"'; }' \ | gawk '/M/ {print strtonum($1)*1000}; /K/ {print strtonum($1)}; /[0-9]$/ {print int($1)/1000}'