]> git.xonotic.org Git - xonotic/xonotic.git/blobdiff - misc/tools/all/release.subr
Make sure to bail out on empty binary files.
[xonotic/xonotic.git] / misc / tools / all / release.subr
index 2835619be24b4d9cdbb6d9cab8f9422eef6f906e..0b02b11f92bff049cc3980cd135ae4371af58af2 100644 (file)
@@ -209,11 +209,15 @@ 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)
                                verbose "$d0/misc/tools/change-icon-of-exe.sh" "$d0/misc/logos/icons_ico/xonotic.ico" "$binary"
                                ;;
+                       Xonotic/*osx*|Xonotic/*linux*)
+                               chmod +x "$binary"
+                               ;;
                esac
                ;;
        release-engine-win32)