bootctl: don't try to remove esp_path (#4407)
This is a follow-up for 9ee051b9c7
This commit is contained in:
parent
9ee051b9c7
commit
88a00ac517
|
@ -918,7 +918,7 @@ static int remove_binaries(const char *esp_path) {
|
|||
if (q < 0 && r == 0)
|
||||
r = q;
|
||||
|
||||
for (i = ELEMENTSOF(efi_subdirs); i > 0; i--) {
|
||||
for (i = ELEMENTSOF(efi_subdirs)-1; i > 0; i--) {
|
||||
q = rmdir_one(esp_path, efi_subdirs[i-1]);
|
||||
if (q < 0 && r == 0)
|
||||
r = q;
|
||||
|
|
Loading…
Reference in a new issue