summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2008-08-10 14:36:18 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2008-08-10 14:36:18 +0000
commitefbdbf808a5ab29c798dec1a3b384cde27493d2d (patch)
tree86877be8c567f3111c5f0f7d325ad1a3fc70e411 /tools
parentc50eef058254cc58946890078d85d92da7d149cf (diff)
downloadrockbox-efbdbf808a5ab29c798dec1a3b384cde27493d2d.tar.gz
rockbox-efbdbf808a5ab29c798dec1a3b384cde27493d2d.tar.bz2
rockbox-efbdbf808a5ab29c798dec1a3b384cde27493d2d.zip
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
Diffstat (limited to 'tools')
-rwxr-xr-xtools/rockboxdev.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/rockboxdev.sh b/tools/rockboxdev.sh
index 4bbf75a5f8..016fc65f7a 100755
--- a/tools/rockboxdev.sh
+++ b/tools/rockboxdev.sh
@@ -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"