summaryrefslogtreecommitdiff
path: root/helpers
diff options
context:
space:
mode:
authorCody A.W. Somerville <cody-somerville@ubuntu.com>2009-03-27 06:39:09 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:09:43 +0100
commitb05975ba1e91840139d57e3fba43dff838da0355 (patch)
treecb7dca8bf47f41ddc5b9a67dc92d1e67e1e8c332 /helpers
parent3f42bba0c79733aa281794876686b0640ae0281b (diff)
downloadvyos-live-build-b05975ba1e91840139d57e3fba43dff838da0355.tar.gz
vyos-live-build-b05975ba1e91840139d57e3fba43dff838da0355.zip
Checking for installer README.html to prevent build failure.
Diffstat (limited to 'helpers')
-rwxr-xr-xhelpers/lh_binary_includes7
1 files changed, 5 insertions, 2 deletions
diff --git a/helpers/lh_binary_includes b/helpers/lh_binary_includes
index e37cc6190..9dfeb18b5 100755
--- a/helpers/lh_binary_includes
+++ b/helpers/lh_binary_includes
@@ -155,8 +155,11 @@ then
DEBIAN_TOOLS_TXT="/tools/"
fi
- sed -i -e "s|DEBIAN_NAME|${DEBIAN_NAME}|g" -e "s|DEBIAN_DATE|${DEBIAN_DATE}|g" -e "s|DEBIAN_TOOLS|${DEBIAN_TOOLS_HTML}|g" binary/README.html
- sed -i -e "s|DEBIAN_NAME|${DEBIAN_NAME}|g" -e "s|DEBIAN_DATE|${DEBIAN_DATE}|g" -e "s|DEBIAN_TOOLS|${DEBIAN_TOOLS_TXT}|g" binary/README.txt
+ if [ -f binary/README.html ]
+ then
+ sed -i -e "s|DEBIAN_NAME|${DEBIAN_NAME}|g" -e "s|DEBIAN_DATE|${DEBIAN_DATE}|g" -e "s|DEBIAN_TOOLS|${DEBIAN_TOOLS_HTML}|g" binary/README.html
+ sed -i -e "s|DEBIAN_NAME|${DEBIAN_NAME}|g" -e "s|DEBIAN_DATE|${DEBIAN_DATE}|g" -e "s|DEBIAN_TOOLS|${DEBIAN_TOOLS_TXT}|g" binary/README.txt
+ fi
fi
# Creating stage file