From ff8e62b64d5be4889c0f9a5c76b8688b78d982e0 Mon Sep 17 00:00:00 2001 From: Lars Müller Date: Sun, 15 Apr 2007 20:31:28 +0000 Subject: Do not construct the URL is the file is prefixed with {ftp,http}://. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@897 95ad53e4-c205-0410-b2fa-d234c58c8868 --- installer/slxbootstrap | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/installer/slxbootstrap b/installer/slxbootstrap index 6dcc2622..f240ef0f 100755 --- a/installer/slxbootstrap +++ b/installer/slxbootstrap @@ -13,7 +13,14 @@ test "${SLX_INST_SOURCE_PACKAGE_SUBDIR}" && \ SLX_INST_SOURCE_PACKAGE_SUBDIR="/${SLX_INST_SOURCE_PACKAGE_SUBDIR}" download_file () { - wget "${SLX_INST_SOURCE_BASEURL}${SLX_INST_SOURCE_PACKAGE_SUBDIR}/${file}" + case ${file} in + ftp://*|http://*) + wget "${file}" + ;; + *) + wget "${SLX_INST_SOURCE_BASEURL}${SLX_INST_SOURCE_PACKAGE_SUBDIR}/${file}" + ;; + esac if test $? != 0; then if test "${SLX_BOOTSTRAP_FAIL_WGET}" = "no"; then continue -- cgit v1.2.3-55-g7522