]> granicus.if.org Git - zfs/commitdiff
Fix shellcheck warning in pre-baked script
authorTony Hutter <hutter2@llnl.gov>
Mon, 24 Apr 2017 16:31:39 +0000 (09:31 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 24 Apr 2017 16:31:39 +0000 (09:31 -0700)
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Closes #6055

cmd/zpool/zpool.d/lsblk

index e38a719411484a86bfdd164776e285e8d1b406c5..fc0394a3d3a9a930978a71ed187b5e57f5427e1e 100755 (executable)
@@ -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