[jhalfs] 02/02: Fix spurious quotes in download code

"Git Owner" ([email protected] via alfs-discuss Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.automated
Message-ID <[email protected]>
This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch trunk
in repository jhalfs.

commit 28ef51b8178c3583147c267afc649a5d2a2bb3ee
Author: Pierre Labastie <[email protected]>
AuthorDate: Sat May 7 11:56:28 2022 +0200

    Fix spurious quotes in download code
    
    $WGETPARM contains several switches separated by blank spaces.
    If quoted in the wget command, it appears as an url with
    spaces, not as switches.
---
 common/libs/func_download_pkgs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/common/libs/func_download_pkgs b/common/libs/func_download_pkgs
index 5cd4e52..09ec7e7 100644
--- a/common/libs/func_download_pkgs
+++ b/common/libs/func_download_pkgs
@@ -59,7 +59,7 @@ get_sources() {              # Download file, write name to MISSING_FILES.DMP if
 	else
 	  echo "${BOLD}${YELLOW}$FILE: not found in ${BUILDDIR}/sources${OFF}"
 	fi
-        if ! wget "$URL" "$WGETPARAM"; then
+        if ! wget "$URL" $WGETPARAM; then
           gs_wrt_message "$FILE not found on any server..SKIPPING"
           continue
         fi
@@ -82,7 +82,7 @@ get_sources() {              # Download file, write name to MISSING_FILES.DMP if
         # Force storage in SRC_ARCHIVE
       fromARCHIVE=0;
         # Try to retrieve again the file.
-      if ! wget "$URL" "$WGETPARAM"; then
+      if ! wget "$URL" $WGETPARAM; then
         gs_wrt_message "$FILE not found on the server... SKIPPING"
         continue
       fi

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

-- 
http://lists.linuxfromscratch.org/sympa/info/alfs-discuss
Unsubscribe: See the above information page
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.