Use ROOT_DEV variable in parted call (#119)

This commit is contained in:
Bernd Krannich 2020-06-01 18:39:42 +02:00 committed by GitHub
parent cdc9528163
commit f6cb301d64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -132,7 +132,7 @@ get_can_expand() {
exit
fi
LAST_PART_NUM=$(parted "ROOT_DEV" -ms unit s p | tail -n 1 | cut -f 1 -d:)
LAST_PART_NUM=$(parted "$ROOT_DEV" -ms unit s p | tail -n 1 | cut -f 1 -d:)
if [ "$LAST_PART_NUM" -ne "$PART_NUM" ]; then
echo 1
exit