fix splitting bootloader string

the existing solution simply did not work
This commit is contained in:
Lyndon Brown 2020-03-10 18:50:32 +00:00 committed by Raphaël Hertzog
parent a6cc72bf6d
commit 9f42bc1bdc
2 changed files with 2 additions and 6 deletions

View File

@ -56,9 +56,7 @@ Check_package chroot /sbin/parted parted
Check_package host /sbin/fdisk fdisk
Check_package host /sbin/losetup mount
echo "${LB_BOOTLOADERS}" | \
while IFS="," read -r BOOTLOADER
do
for BOOTLOADER in $(echo "${LB_BOOTLOADERS}" | tr "," "\n"); do
case "${BOOTLOADER}" in
grub)
Check_package chroot /usr/sbin/grub grub

View File

@ -57,9 +57,7 @@ Chroot chroot "sh source-selection.sh"
rm -f chroot/source-selection.sh
mv chroot/source-selection.txt ./
echo "${LB_BOOTLOADERS}" | \
while IFS="," read -r BOOTLOADER
do
for BOOTLOADER in $(echo "${LB_BOOTLOADERS}" | tr "," "\n"); do
echo "${BOOTLOADER}" >> source-selection.txt
done