In shells where echo backslash escaping is enabled by default
the EFI paths (backslash-delimited) get badly scrambled.
- echo "efi-boot-update: $*" >&2
+ echo -E "efi-boot-update: $*" >&2
}
verbose () {
if is_yes "$VERBOSE" ; then
}
verbose () {
if is_yes "$VERBOSE" ; then
- echo "efi-boot-update: $*" >&2
+ echo -E "efi-boot-update: $*" >&2
fi
}
verbose_cmd () {
if is_yes "$VERBOSE" ; then
fi
}
verbose_cmd () {
if is_yes "$VERBOSE" ; then
if [ "$item" = "$2" ] ; then
continue
fi
if [ "$item" = "$2" ] ; then
continue
fi
binary="$DESTDIR/$binary"
fi
binary="${binary#/boot/efi}"
binary="$DESTDIR/$binary"
fi
binary="${binary#/boot/efi}"
- binary="$(echo -n "$binary"|sed -e's;/;\\;g')"
+ binary="$(echo -nE "$binary"|sed -e's;/;\\;g')"
if [ -n "$bootnum" ] ; then
echo -n "$args" | verbose_cmd $EFIBOOTMGR $EFIBOOTMGR_OPTS --quiet \
if [ -n "$bootnum" ] ; then
echo -n "$args" | verbose_cmd $EFIBOOTMGR $EFIBOOTMGR_OPTS --quiet \