[Buildroot] [PATCH] support/download/file: fix file:// protocol handling
Angelo Compagnucci
angelo at amarulasolutions.com
Mon May 7 08:50:42 UTC 2018
This patch removes the file:// prefix from file url before passing it
to the cp command. It fixes also a missing / between url directory
and file part.
Signed-off-by: Angelo Compagnucci <angelo at amarulasolutions.com>
---
support/download/file | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/support/download/file b/support/download/file
index fefd6d2..6dd37b0 100755
--- a/support/download/file
+++ b/support/download/file
@@ -40,4 +40,4 @@ _localfiles() {
eval ${LOCALFILES} "${@}"
}
-_localfiles ${verbose} "'${dir}${file}'" "'${output}'"
+_localfiles ${verbose} "'${dir##file://}/${file}'" "'${output}'"
--
2.7.4
More information about the buildroot
mailing list