summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTony Hutter <[email protected]>2017-04-24 09:31:39 -0700
committerBrian Behlendorf <[email protected]>2017-04-24 09:31:39 -0700
commitb717b11cb0267a024ece6dc424b6575c685196fc (patch)
tree13d669f1e738aa3706f4fdb8a033f93a7cd8f9cb
parent0091d66f4ebfeb83f70212ab92a4d5a8e4a9c4dc (diff)
Fix shellcheck warning in pre-baked script
Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Tony Hutter <[email protected]> Closes #6055
-rwxr-xr-xcmd/zpool/zpool.d/lsblk2
1 files changed, 1 insertions, 1 deletions
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