summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody A.W. Somerville <cody.somerville@canonical.com>2009-06-08 07:36:05 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:09:44 +0100
commit16ba7aa98e3caea9de641e4b40ed8186157dc15d (patch)
tree7a1666cf923b05d119920f418a9da8c65fedec66
parent5239579ad0b5c5f17344f0931adf52792a6029d8 (diff)
downloadlive-build-16ba7aa98e3caea9de641e4b40ed8186157dc15d.zip
live-build-16ba7aa98e3caea9de641e4b40ed8186157dc15d.tar.gz
Fixing build failure in lh_binary_syslinux that occurs if exithelp.cfg does not exist.
-rwxr-xr-xhelpers/lh_binary_syslinux5
1 files changed, 4 insertions, 1 deletions
diff --git a/helpers/lh_binary_syslinux b/helpers/lh_binary_syslinux
index 5e5009a..d69b8a0 100755
--- a/helpers/lh_binary_syslinux
+++ b/helpers/lh_binary_syslinux
@@ -294,7 +294,10 @@ Configure_syslinux_templates ()
$template_file
done
- sed -i -e 's/isolinux.cfg/syslinux.cfg/' ${SYSLINUX_PATH}/exithelp.cfg
+ if [ -f "${SYSLINUX_PATH}/exithelp.cfg" ]
+ then
+ sed -i -e 's/isolinux.cfg/syslinux.cfg/' ${SYSLINUX_PATH}/exithelp.cfg
+ fi
# Syslinux v3.31 in etch does not support include statements
if [ "${LH_DISTRIBUTION}" = "etch" ]