mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-28 03:49:38 +03:00
Fix shellcheck warning in pre-baked script
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Tony Hutter <hutter2@llnl.gov> Closes #6055
This commit is contained in:
parent
0091d66f4e
commit
b717b11cb0
@ -68,7 +68,7 @@ for i in $list ; do
|
|||||||
# Special case: Looking up the size of a file-based vdev can't
|
# Special case: Looking up the size of a file-based vdev can't
|
||||||
# be done with lsblk.
|
# be done with lsblk.
|
||||||
if [ "$i" = "size" ] && [ -f "$VDEV_UPATH" ] ; then
|
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"
|
echo "size=$size"
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user