mirror of
https://github.com/brain-hackers/brain-config.git
synced 2024-12-22 20:20:06 +09:00
Use ROOT_DEV variable in parted call (#119)
This commit is contained in:
parent
cdc9528163
commit
f6cb301d64
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user