From 9e969ba5d44b1bae45892f13f7bab197b806ba2e Mon Sep 17 00:00:00 2001 From: Jonathan Curran Date: Tue, 9 Jun 2020 15:42:07 -0600 Subject: [PATCH 1/2] Fix header argument --- install.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/install.sh b/install.sh index d0cb02b..08b6926 100755 --- a/install.sh +++ b/install.sh @@ -340,13 +340,13 @@ do_download () { echo "Downloading ${url}..." local header if [[ -n "${RS_USER_AGENT}" ]]; then - header="--header 'User-Agent: ${RS_USER_AGENT}'" + header="--header='User-Agent: ${RS_USER_AGENT}'" fi if [[ "${RUN_UNATTENDED}" -ne "0" ]]; then - wget -q "${header}" "${url}" + wget -q "${header[@]}" "${url}" else - wget --progress=bar "${header}" "${url}" + wget --progress=bar "${header[@]}" "${url}" fi rc=$? # Or, If curl is around, use that. @@ -358,9 +358,9 @@ do_download () { fi if [[ "${RUN_UNATTENDED}" -ne "0" ]]; then - curl -fsSL "${header}" --output "${file_name}" "${url}" + curl -fsSL "${header[@]}" --output "${file_name}" "${url}" else - curl -fL "${header}" --output "${file_name}" --progress-bar "${url}" + curl -fsSL "${header[@]}" --output "${file_name}" --progress-bar "${url}" fi rc=$? # Otherwise, we can't go on. From 3798528dcbc5b6f646d8484f1549a5f1e8f630e1 Mon Sep 17 00:00:00 2001 From: Jonathan Curran Date: Tue, 9 Jun 2020 15:48:41 -0600 Subject: [PATCH 2/2] Fix not quiet --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 08b6926..5cfdf50 100755 --- a/install.sh +++ b/install.sh @@ -360,7 +360,7 @@ do_download () { if [[ "${RUN_UNATTENDED}" -ne "0" ]]; then curl -fsSL "${header[@]}" --output "${file_name}" "${url}" else - curl -fsSL "${header[@]}" --output "${file_name}" --progress-bar "${url}" + curl -fL "${header[@]}" --output "${file_name}" --progress-bar "${url}" fi rc=$? # Otherwise, we can't go on.