From 7ce48a412c8ee2637650f65fe321c08967bba227 Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Mon, 5 Nov 2018 15:50:25 +0100 Subject: [PATCH] gamepack-manager: fix extra-urls trick --- gamepack-manager | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/gamepack-manager b/gamepack-manager index d7669659..6f280f6e 100755 --- a/gamepack-manager +++ b/gamepack-manager @@ -224,18 +224,14 @@ getValue () { downloadExtraUrls () { - local dir - - dir="${1}" - - if [ -f "${dir}/extra-urls.txt" ] + if [ -f 'extra-urls.txt' ] then - while IFS=' ' read -r FILE URL + while IFS=' ' read -r extra_file extra_url do ( - ${WGET} -O "${dir}/${FILE}" "${URL}" + ${WGET} -O "${extra_file}" "${extra_url}" )