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

View File

@@ -132,7 +132,7 @@ get_can_expand() {
exit exit
fi 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 if [ "$LAST_PART_NUM" -ne "$PART_NUM" ]; then
echo 1 echo 1
exit exit