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

Ports: Ensure that the download filename matches the URL basename

This is a preparation step for removing support for explicitly setting a
download filename entirely.
This commit is contained in:
Tim Schumacher 2023-08-07 13:49:25 +02:00 committed by Jelle Raaijmakers
parent c71815bc91
commit 2732545b4c
106 changed files with 128 additions and 122 deletions

View file

@ -315,6 +315,11 @@ fetch_simple() {
filename="${2}"
checksum="${3}"
if [ "${filename}" != "$(basename "${url}")" ]; then
echo "Filename '${filename}' does not match basename of '${url}'"
exit 1
fi
tried_download_again=0
while true; do