Exit immediately if wget fails to download any one of its files. This will
allow future runs to be successful. Fixes #5528 git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35744 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -253,6 +253,13 @@ function ContainsSubstring()
|
||||
}
|
||||
|
||||
|
||||
function ErrorExit()
|
||||
{
|
||||
echo $1
|
||||
exit 1
|
||||
}
|
||||
|
||||
|
||||
function Init()
|
||||
{
|
||||
|
||||
@@ -292,7 +299,7 @@ function GetBuildFile()
|
||||
local baseURL=http://dev.haiku-os.org/export/
|
||||
local revision=`uname -v | awk '{print $1}' | sed -e 's/r//'`
|
||||
local url="${baseURL}${revision}/haiku/trunk/build/jam/${buildfile}"
|
||||
wget -nv ${url} > /dev/null 2>&1
|
||||
wget -q ${url} || ErrorExit "...failed to download $buildfile"
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user