]> source.dussan.org Git - jquery-ui.git/commitdiff
build: removes disturbing error outputs on which call 511/head
authorbasti <info@dynpages.de>
Tue, 1 Nov 2011 10:53:06 +0000 (11:53 +0100)
committerbasti <info@dynpages.de>
Tue, 1 Nov 2011 10:53:06 +0000 (11:53 +0100)
By calling `which node nodejs` which reports an error even if there's an existing nodejs installation in $PATH.
It silently ignores that non existing issue now.

Before: http://imagebin.org/181889
After: http://imagebin.org/181890

build/build.xml
build/build/minify-js.sh

index 1e5ab842b92b0a5960559fbd7ee144074158dc21..49568b3ccbbdc2000cc001ddd68288059584dc17 100644 (file)
                <echo message="Comparing file size with previous build" />
                <exec executable="bash">
                        <arg value="-c" />
-                       <arg value="wc -c ${size.dir}/* | `which node nodejs` build/sizer.js" />
+                       <arg value="wc -c ${size.dir}/* | `which node nodejs 2>/dev/null` build/sizer.js" />
                </exec>
                <delete dir="${size.dir}" />
        </target>
index c94853fa23d8b58305749a25a03889449713005f..2633a2f57f705182529513bbf5f6912314216fc5 100755 (executable)
@@ -1,3 +1,3 @@
 #!/bin/bash
 dir=$(dirname $0)
-`which node nodejs` $dir/uglify.js $1 > $2
+`which node nodejs 2> /dev/null` $dir/uglify.js $1 > $2