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:
parent
c71815bc91
commit
2732545b4c
106 changed files with 128 additions and 122 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue