From 5b68a55c18511934ec929fb482917722f5cc793b Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Wed, 2 Jul 2008 09:19:46 +0000 Subject: [PATCH] [syslinux] Fixed the case where ITARGET is empty --- x86/syslinux/syslinux.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/x86/syslinux/syslinux.conf b/x86/syslinux/syslinux.conf index 6ddbdfa18..202409b95 100644 --- a/x86/syslinux/syslinux.conf +++ b/x86/syslinux/syslinux.conf @@ -20,9 +20,9 @@ var_append makeopt ' ' '$ITARGET' hook_add preconf 5 'syslinux_itarget_prepare' syslinux_itarget_prepare() { - export ITARGET=$( grep ^ITARGET Makefile | cut -d= -f2- ) - - rm -v $ITARGET + export ITARGET=$( grep ^ITARGET Makefile | cut -d= -f2- | sed -e 's/^ *//' ) + + [ -z "$ITARGET" ] || rm -v $ITARGET } # install mkdiskimage