]> git.proxmox.com Git - pve-installer.git/commitdiff
bootloader installation: fix wrong & misleading parenthesis indentation
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 13 Jun 2023 11:42:20 +0000 (13:42 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 13 Jun 2023 11:42:21 +0000 (13:42 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
proxinstall

index 070b7cfecf62103fd09ed2e3aa8fffc845a1a5b2..c0274a2530c27a33a0cfd420998879bdb3da88a2 100755 (executable)
@@ -1268,13 +1268,11 @@ _EOD
                            push @$bootloader_err_list, $@ if $@;
                        }
 
-                   eval {
                        if (my $esp = $di->{esp}) {
-                               prepare_grub_efi_boot_esp($dev, $esp, $targetdir);
-                           }
+                           eval { prepare_grub_efi_boot_esp($dev, $esp, $targetdir) };
+                           push @$bootloader_err_list, $@ if $@;
                        }
-                   };
-                   push @$bootloader_err_list, $@ if $@;
+                   }
                }
 
                syscmd("chroot $targetdir /usr/sbin/update-grub") == 0 ||