aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/zpool/zpool.d/lsblk
diff options
context:
space:
mode:
authorDamian Szuberski <[email protected]>2022-01-07 01:07:54 +0100
committerGitHub <[email protected]>2022-01-06 16:07:54 -0800
commitc1d3be19d7646c2dfeec04a31c96542be77b9763 (patch)
tree72ca292f59dd912c1de7471158b932bad0746fcd /cmd/zpool/zpool.d/lsblk
parenta8f27ec6c5f89f721f0492ed7b07437ec439d83d (diff)
Add ShellCheck's `--enable=all` inside `cmd/`
The only exception is `cmd/vdev_id/vdev_id` which might be a subject of refactoring (see #12084) Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Ahelenia ZiemiaƄska <[email protected]> Signed-off-by: szubersk <[email protected]> Closes #12912
Diffstat (limited to 'cmd/zpool/zpool.d/lsblk')
-rwxr-xr-xcmd/zpool/zpool.d/lsblk1
1 files changed, 1 insertions, 0 deletions
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"