From b717b11cb0267a024ece6dc424b6575c685196fc Mon Sep 17 00:00:00 2001 From: Tony Hutter Date: Mon, 24 Apr 2017 09:31:39 -0700 Subject: [PATCH] Fix shellcheck warning in pre-baked script Reviewed-by: Brian Behlendorf Signed-off-by: Tony Hutter Closes #6055 --- cmd/zpool/zpool.d/lsblk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/zpool/zpool.d/lsblk b/cmd/zpool/zpool.d/lsblk index e38a71941..fc0394a3d 100755 --- a/cmd/zpool/zpool.d/lsblk +++ b/cmd/zpool/zpool.d/lsblk @@ -68,7 +68,7 @@ for i in $list ; do # Special case: Looking up the size of a file-based vdev can't # be done with lsblk. if [ "$i" = "size" ] && [ -f "$VDEV_UPATH" ] ; then - size="$(du -h --apparent-size $VDEV_UPATH | cut -f 1)" + size=$(du -h --apparent-size "$VDEV_UPATH" | cut -f 1) echo "size=$size" continue fi -- 2.40.0