Condensed 3 seperate [rsync] commands into single for loop

This commit is contained in:
2026-08-02 07:49:18 -04:00
parent 0c03548307
commit 9b15fd5159
+3 -15
View File
@@ -22,26 +22,14 @@ wget \
/boot/efi/EFI/ZBM/VMLINUZ.EFI \ /boot/efi/EFI/ZBM/VMLINUZ.EFI \
https://get.zfsbootmenu.org/efi https://get.zfsbootmenu.org/efi
for file in {ZBM/VMLINUZ-BACKUP,BOOT/{BOOTX64,shellx64}}; do
rsync \ rsync \
-pogAXtlHrDx \ -pogAXtlHrDx \
--stats \ --stats \
--info=progress2 \ --info=progress2 \
/boot/efi/EFI/ZBM/VMLINUZ.EFI \ /boot/efi/EFI/ZBM/VMLINUZ.EFI \
/boot/efi/EFI/ZBM/VMLINUZ-BACKUP.EFI /boot/efi/EFI/${file}.EFI
done
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
efibootmgr \ efibootmgr \
-c \ -c \