From 2bfdb3cb443cf1485d483ba8291b2913c90b2735 Mon Sep 17 00:00:00 2001 From: Roland Clobus Date: Sat, 8 Jan 2022 13:30:45 +0100 Subject: [PATCH] Bugfix: The arguments to the 'tr' command must be quoted. --- scripts/build/binary_hdd | 4 ++-- scripts/build/binary_syslinux | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/build/binary_hdd b/scripts/build/binary_hdd index 8d24586c8..c68c45129 100755 --- a/scripts/build/binary_hdd +++ b/scripts/build/binary_hdd @@ -187,7 +187,7 @@ case "${LB_BUILD_WITH_CHROOT}" in Chroot chroot "parted -s ${FREELO} set 1 lba off" || true if [ "${LB_BOOTLOADER_BIOS}" = "syslinux" ]; then - dd if=chroot/usr/lib/$(echo ${_BOOTLOADER} | tr [a-z] [A-Z])/mbr.bin of=${FREELO} bs=440 count=1 + dd if=chroot/usr/lib/$(echo ${_BOOTLOADER} | tr '[a-z]' '[A-Z]')/mbr.bin of=${FREELO} bs=440 count=1 fi ;; @@ -206,7 +206,7 @@ case "${LB_BUILD_WITH_CHROOT}" in parted -s "${FREELO}" set 1 lba off || true if [ "${LB_BOOTLOADER_BIOS}" = "syslinux" ]; then - dd if=/usr/lib/$(echo ${_BOOTLOADER} | tr [a-z] [A-Z])/mbr.bin of=${FREELO} bs=440 count=1 + dd if=/usr/lib/$(echo ${_BOOTLOADER} | tr '[a-z]' '[A-Z]')/mbr.bin of=${FREELO} bs=440 count=1 fi ;; esac diff --git a/scripts/build/binary_syslinux b/scripts/build/binary_syslinux index 9b3d18ece..e21360af9 100755 --- a/scripts/build/binary_syslinux +++ b/scripts/build/binary_syslinux @@ -93,7 +93,7 @@ else fi # Checking depends -Check_package chroot /usr/lib/$(echo ${_BOOTLOADER} | tr [a-z] [A-Z]) ${_BOOTLOADER} +Check_package chroot /usr/lib/$(echo ${_BOOTLOADER} | tr '[a-z]' '[A-Z]') ${_BOOTLOADER} Check_package chroot /usr/lib/syslinux syslinux-common Check_package chroot /usr/bin/rsvg-convert librsvg2-bin