From c1d3be19d7646c2dfeec04a31c96542be77b9763 Mon Sep 17 00:00:00 2001 From: Damian Szuberski Date: Fri, 7 Jan 2022 01:07:54 +0100 Subject: Add ShellCheck's `--enable=all` inside `cmd/` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The only exception is `cmd/vdev_id/vdev_id` which might be a subject of refactoring (see #12084) Reviewed-by: Brian Behlendorf Reviewed-by: Ahelenia ZiemiaƄska Signed-off-by: szubersk Closes #12912 --- cmd/zpool/zpool.d/lsblk | 1 + 1 file changed, 1 insertion(+) (limited to 'cmd/zpool/zpool.d/lsblk') diff --git a/cmd/zpool/zpool.d/lsblk b/cmd/zpool/zpool.d/lsblk index 919783a1c..1ed146443 100755 --- a/cmd/zpool/zpool.d/lsblk +++ b/cmd/zpool/zpool.d/lsblk @@ -66,6 +66,7 @@ for i in $list ; do # Special case: Looking up the size of a file-based vdev can't # be done with lsblk. + # shellcheck disable=SC2154 if [ "$i" = "size" ] && [ -f "$VDEV_UPATH" ] ; then size=$(du -h --apparent-size "$VDEV_UPATH" | cut -f 1) echo "size=$size" -- cgit v1.2.3