Make sure to bail out on empty binary files.
authorRudolf Polzer <divVerent@xonotic.org>
Thu, 9 Oct 2014 12:31:29 +0000 (14:31 +0200)
committerRudolf Polzer <divVerent@xonotic.org>
Thu, 9 Oct 2014 12:31:29 +0000 (14:31 +0200)
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"
                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)
                # TODO eventually do the rebranding on travis too.
                case "$binary" in
                        Xonotic/xonotic*.exe)