Remove weird spaces from script output

Bu işleme şunda yer alıyor:
AJ Jordan 2018-11-30 23:53:45 -05:00
ebeveyn 8000e76d43
işleme ce78625bec
Veri tabanında bu imza için bilinen anahtar bulunamadı
GPG Anahtar Kimliği: A4FDB7BE12F63EC3

Dosyayı Görüntüle

@ -15,7 +15,7 @@ sysfs_xvda="/sys/class/block/xvda"
# if root filesystem use already (almost) the whole dis
non_rootfs_data=$(( 250 * 1024 * 2 ))
rootfs_size=$(df --block-size=512 --output=size / | tail -n 1)
rootfs_size=$(df --block-size=512 --output=size / | tail -n 1 | tr -d ' ')
if [ $(cat $sysfs_xvda/size) -gt \
$(( non_rootfs_data + rootfs_size )) ]; then
echo "root filesystem already at $rootfs_size blocks" >&2