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
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user