Make sure to bail out on empty binary files.
[xonotic/xonotic.git] / misc / tools / all / release.subr
index 60e6940661ef0f7ea91f53c453004d4bf424c357..0b02b11f92bff049cc3980cd135ae4371af58af2 100644 (file)
@@ -209,6 +209,7 @@ case "$cmd" in
                basename=${binary##*/}
                rev=`( cd "$d0/darkplaces" && git rev-parse HEAD )`
                verbose wget -O "$binary" "http://beta.xonotic.org/autobuild-bin/$rev/$basename"
+               [ -s "$binary" ]
                # TODO eventually do the rebranding on travis too.
                case "$binary" in
                        Xonotic/xonotic*.exe)