Add quotes to placate ShellCheck
This commit is contained in:
parent
0f3b4985c3
commit
235d44e632
@ -18,7 +18,7 @@ sysfs_xvda="/sys/class/block/xvda"
|
|||||||
# See QubesOS/qubes-core-agent-linux#146 for more details
|
# See QubesOS/qubes-core-agent-linux#146 for more details
|
||||||
size_margin=$(((222 + 203) * 2 * 1024))
|
size_margin=$(((222 + 203) * 2 * 1024))
|
||||||
rootfs_size=$(df --block-size=512 --output=size / | tail -n 1 | tr -d ' ')
|
rootfs_size=$(df --block-size=512 --output=size / | tail -n 1 | tr -d ' ')
|
||||||
if [ $(cat $sysfs_xvda/size) -lt \
|
if [ "$(cat $sysfs_xvda/size)" -lt \
|
||||||
$(( size_margin + rootfs_size )) ]; then
|
$(( size_margin + rootfs_size )) ]; then
|
||||||
echo "root filesystem already at $rootfs_size blocks" >&2
|
echo "root filesystem already at $rootfs_size blocks" >&2
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user