From f3368c9b90a015b557ab5ff647d8fee28c53e50a Mon Sep 17 00:00:00 2001 From: Nikolaus Krismer <niko@krismer.de> Date: Sat, 24 May 2014 12:42:11 +0200 Subject: [PATCH] fixed some download issues with URLs containing special chars (like &) --- etc/vagrant/bootstrap.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/etc/vagrant/bootstrap.sh b/etc/vagrant/bootstrap.sh index 31b5cad7..f9fe0b8c 100644 --- a/etc/vagrant/bootstrap.sh +++ b/etc/vagrant/bootstrap.sh @@ -213,8 +213,8 @@ fn_download() FILE=$1 URL=$2 - if wget --no-check-certificate -O /dev/null -q $URL; then - wget --no-check-certificate -O $FILE -q $URL + if wget --no-check-certificate -O /dev/null -q "$URL"; then + wget --no-check-certificate -O "$FILE" -q "$URL" fi } @@ -225,8 +225,8 @@ fn_download_newer() URL=$2 if [ ! -f "$FILE" ]; then - if wget --no-check-certificate -O /dev/null -q $URL; then - wget --no-check-certificate -O $FILE -q $URL + if wget --no-check-certificate -O /dev/null -q "$URL"; then + wget --no-check-certificate -O "$FILE" -q "$URL" fi fi } -- GitLab