diff --git a/leaf b/leaf index 490237f..740710a 100755 --- a/leaf +++ b/leaf @@ -335,11 +335,11 @@ leaf_prepare_package() { else echo "md5sum does not match, redownloading..." rm -rf "${sourcefile}" - wget "${urls[$index]}" + wget -O "${sourcefile}" "${url}" fi else echo "Downloading ${sourcefile}..." - wget "${urls[$index]}" + wget -O "${sourcefile}" "${url}" fi _md5sum=$(md5sum "${sourcefile}" | awk '{print $1}') if [ "${_md5sum}" != "${md5sums[$index]}" ]; then