From 5927e5aad36ae0b375ff4a658630806ab43c3e83 Mon Sep 17 00:00:00 2001 From: Yingjie Wang Date: Fri, 14 Mar 2025 12:02:31 -0400 Subject: [PATCH] fix: use wget -O to specify file name --- leaf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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