Fix: syntax error in shrink

This commit is contained in:
natemaia 2019-04-21 12:47:54 -07:00
parent fde57308e3
commit 62284e422f

View File

@ -948,6 +948,7 @@ part_shrink()
mount "$part" $MNT >/dev/null 2>&1; sleep 0.5 mount "$part" $MNT >/dev/null 2>&1; sleep 0.5
min=$(df --output=used --block-size=KiB "$part" | awk 'NR == 2 {print int($1)}') min=$(df --output=used --block-size=KiB "$part" | awk 'NR == 2 {print int($1)}')
umount $MNT >/dev/null 2>&1 umount $MNT >/dev/null 2>&1
;;
ntfs) min=$(ntfsresize -f -m "$part" | awk 'NR == 2 {print int(($NF * 1000 * 1000) / 1024)}') >/dev/null 2>&1 ;; ntfs) min=$(ntfsresize -f -m "$part" | awk 'NR == 2 {print int(($NF * 1000 * 1000) / 1024)}') >/dev/null 2>&1 ;;
esac esac