fix: use wget -O to specify file name

This commit is contained in:
2025-03-14 12:02:31 -04:00
parent 8e57cdcebe
commit 5927e5aad3

4
leaf
View File

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