diff --git a/build.sh b/build.sh
index b1bb15971dff7529215cca504b054faaf5a769a9..c0d7e55f7efafc8b7a10c3cf42d271aaeabfedd6 100755
--- a/build.sh
+++ b/build.sh
@@ -550,7 +550,7 @@ then
     begin_section "Uploads"
     # Upload installer
     package=$(installer_$arch)
-    if [ x"$package" != x ] && test -d "$package"
+    if [ x"$package" != x ] && test -f "$package"
     then
       # Upload base package.
       installer+=("$package")