Skip to content

Commit

Permalink
Fix regression where empty partition size fields are incorrectly reje…
Browse files Browse the repository at this point in the history
…cted
  • Loading branch information
Lanchon committed Jan 15, 2017
1 parent 590a880 commit adbdfa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion repit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ parsePartitionConfiguration() {

if [ -n "$conf" ]; then

local regex="^\([0-9.]*[GgMm]\|same\|min\|max\)\(+\(\|keep\|wipe\)\(+\(\|ext4\|vfat\|f2fs\|swap\|raw\)\)\?\)\?$"
local regex="^\(\|[0-9]\+[GgMm]\|[0-9]\+[.][0-9]*[GgMm]\|[.][0-9]\+[GgMm]\|same\|min\|max\)\(+\(\|keep\|wipe\)\(+\(\|ext4\|vfat\|f2fs\|swap\|raw\)\)\?\)\?$"

if [ -n "$(echo -n "$conf" | sed "s/$regex//")" ]; then
fatal "invalid partition configuration for '$parName': $parName=$conf"
Expand Down

0 comments on commit adbdfa7

Please sign in to comment.