Condensed 3 seperate [rsync] commands into single for loop
This commit is contained in:
@@ -22,26 +22,14 @@ wget \
|
||||
/boot/efi/EFI/ZBM/VMLINUZ.EFI \
|
||||
https://get.zfsbootmenu.org/efi
|
||||
|
||||
rsync \
|
||||
for file in {ZBM/VMLINUZ-BACKUP,BOOT/{BOOTX64,shellx64}}; do
|
||||
rsync \
|
||||
-pogAXtlHrDx \
|
||||
--stats \
|
||||
--info=progress2 \
|
||||
/boot/efi/EFI/ZBM/VMLINUZ.EFI \
|
||||
/boot/efi/EFI/ZBM/VMLINUZ-BACKUP.EFI
|
||||
|
||||
rsync \
|
||||
-pogAXtlHrDx \
|
||||
--stats \
|
||||
--info=progress2 \
|
||||
/boot/efi/EFI/ZBM/VMLINUZ.EFI \
|
||||
/boot/efi/EFI/BOOT/BOOTX64.EFI
|
||||
|
||||
rsync \
|
||||
-pogAXtlHrDx \
|
||||
--stats \
|
||||
--info=progress2 \
|
||||
/boot/efi/EFI/ZBM/VMLINUZ.EFI \
|
||||
/boot/efi/EFI/BOOT/shellx64.efi
|
||||
/boot/efi/EFI/${file}.EFI
|
||||
done
|
||||
|
||||
efibootmgr \
|
||||
-c \
|
||||
|
||||
Reference in New Issue
Block a user