1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-29 22:17:45 +00:00

Ports: Remove the filename entry from files

This commit is contained in:
Tim Schumacher 2023-08-07 21:10:39 +02:00 committed by Jelle Raaijmakers
parent 2732545b4c
commit fb4db096cb
311 changed files with 335 additions and 339 deletions

View file

@ -312,13 +312,9 @@ do_download_file() {
fetch_simple() {
url="${1}"
filename="${2}"
checksum="${3}"
checksum="${2}"
if [ "${filename}" != "$(basename "${url}")" ]; then
echo "Filename '${filename}' does not match basename of '${url}'"
exit 1
fi
filename="$(basename "${url}")"
tried_download_again=0
@ -371,8 +367,8 @@ func_defined fetch || fetch() {
pre_fetch
for f in "${files[@]}"; do
read url filename auth_sum <<< $(echo "${f}")
fetch_simple "${url}" "${filename}" "${auth_sum}"
read url auth_sum <<< $(echo "${f}")
fetch_simple "${url}" "${auth_sum}"
done
post_fetch