repart: do not quit earlier when --empty=force

Follow-up for 0ae5ffe063.
This commit is contained in:
Yu Watanabe
2020-02-07 13:48:16 +01:00
committed by Frantisek Sumsal
parent 676047438a
commit 03b76a1977
+1 -1
View File
@@ -2946,7 +2946,7 @@ static int run(int argc, char *argv[]) {
if (r < 0)
return r;
if (context->n_partitions <= 0)
if (context->n_partitions <= 0 && arg_empty != EMPTY_FORCE)
return 0;
r = find_root(&node);