Add quotes to placate ShellCheck

This commit is contained in:
AJ Jordan 2018-12-01 19:28:14 -05:00
parent 0f3b4985c3
commit 235d44e632
No known key found for this signature in database
GPG Key ID: A4FDB7BE12F63EC3

View File

@ -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