mkpackage: fixed last commit logic.

This commit is contained in:
Ricardo Martins 2016-02-11 14:26:24 +00:00 committed by José Braga
parent febcfa0425
commit 6075393a97

View File

@ -28,16 +28,15 @@ download_tool()
{
wget -c "$1" -O "$2"
if [ $? -eq 0 ]; then
rm -f "$2"
return 0
fi
curl -f -C - "$1" -o "$2"
if [ $? -eq 0 ]; then
rm -f "$2"
return 0
fi
rm -f "$2"
return 1
}