summaryrefslogtreecommitdiff
path: root/etc/functions/rrad
diff options
context:
space:
mode:
Diffstat (limited to 'etc/functions/rrad')
-rwxr-xr-xetc/functions/rrad6
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/functions/rrad b/etc/functions/rrad
index 21cda6d..195ceb3 100755
--- a/etc/functions/rrad
+++ b/etc/functions/rrad
@@ -4,5 +4,11 @@ typeset url=$(printf http://www.wetteronline.de/daten/radar/dnrw/%s/std_%02d%02d
typeset file=$(mktemp /tmp/rrad.XXXXXXX)
curl -s $url > $file
+
+if [[ ${$(du -b $file)[1]} == 0 ]] {
+ echo "Error"
+ return 1
+}
+
mplayer -loop 0 $file
rm $file