Commit FS#9156 by Tomer Shalev - Fix the fact that rockboxdev.sh does not abort when downloading fails
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18236 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
c50eef0582
commit
efbdbf808a
1 changed files with 6 additions and 0 deletions
|
@ -73,6 +73,12 @@ getfile() {
|
|||
$tool -Lo $dlwhere/$1 $2/$1
|
||||
fi
|
||||
|
||||
if [ $? -ne 0 ] ; then
|
||||
echo "ROCKBOXDEV: couldn't download the file!"
|
||||
echo "ROCKBOXDEV: check your internet connection"
|
||||
exit
|
||||
fi
|
||||
|
||||
if test -z "$tool"; then
|
||||
echo "ROCKBOXDEV: No downloader tool found!"
|
||||
echo "ROCKBOXDEV: Please install curl or wget and re-run the script"
|
||||
|
|
Loading…
Reference in a new issue