fix: use wget -O to specify file name
This commit is contained in:
4
leaf
4
leaf
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user