mirror of
git://code.qt.io/qt/qt5.git
synced 2026-04-21 12:26:36 +08:00
DownloadURL last argument (targetFile) is now optional
Change-Id: I0864bcb052cddcc9753c056758b6e65fd561d928 Reviewed-by: Tony Sarajärvi <tony.sarajarvi@qt.io>
This commit is contained in:
@@ -89,7 +89,14 @@ DownloadURL () {
|
|||||||
url=$1
|
url=$1
|
||||||
url2=$2
|
url2=$2
|
||||||
expectedHash=$3
|
expectedHash=$3
|
||||||
targetFile=$4
|
# Optional argument $4: destination filename
|
||||||
|
if [ x"$4" = x ]
|
||||||
|
then
|
||||||
|
# defaults to the last component of $url
|
||||||
|
targetFile=$(echo $url | sed 's|^.*/||')
|
||||||
|
else
|
||||||
|
targetFile=$4
|
||||||
|
fi
|
||||||
|
|
||||||
if VerifyHash "$targetFile" "$expectedHash"
|
if VerifyHash "$targetFile" "$expectedHash"
|
||||||
then
|
then
|
||||||
|
|||||||
Reference in New Issue
Block a user