From: Thomas Debesse Date: Mon, 5 Nov 2018 14:50:25 +0000 (+0100) Subject: gamepack-manager: fix extra-urls trick X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7ce48a412c8ee2637650f65fe321c08967bba227;p=xonotic%2Fnetradiant.git gamepack-manager: fix extra-urls trick --- 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}" )