From: Tony Hutter Date: Mon, 24 Apr 2017 16:31:39 +0000 (-0700) Subject: Fix shellcheck warning in pre-baked script X-Git-Tag: zfs-0.7.0-rc4~34 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b717b11cb0267a024ece6dc424b6575c685196fc;p=zfs Fix shellcheck warning in pre-baked script Reviewed-by: Brian Behlendorf Signed-off-by: Tony Hutter Closes #6055 --- 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