diff options
| author | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2008-08-10 14:36:18 +0000 |
|---|---|---|
| committer | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2008-08-10 14:36:18 +0000 |
| commit | efbdbf808a5ab29c798dec1a3b384cde27493d2d (patch) | |
| tree | 86877be8c567f3111c5f0f7d325ad1a3fc70e411 | |
| parent | c50eef058254cc58946890078d85d92da7d149cf (diff) | |
| download | rockbox-efbdbf808a5ab29c798dec1a3b384cde27493d2d.zip rockbox-efbdbf808a5ab29c798dec1a3b384cde27493d2d.tar.gz rockbox-efbdbf808a5ab29c798dec1a3b384cde27493d2d.tar.bz2 rockbox-efbdbf808a5ab29c798dec1a3b384cde27493d2d.tar.xz | |
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
| -rwxr-xr-x | tools/rockboxdev.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/rockboxdev.sh b/tools/rockboxdev.sh index 4bbf75a..016fc65 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" |