Skip to content
Permalink
Browse files

build: removes disturbing error outputs on which call

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
  • Loading branch information...
basti1253 committed Nov 1, 2011
1 parent e31adf0 commit ea38e15e20bf97163bad043f4f3455f0e2217a4c
Showing with 2 additions and 2 deletions.
  1. +1 −1 build/build.xml
  2. +1 −1 build/build/minify-js.sh
@@ -320,7 +320,7 @@
<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>
@@ -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

0 comments on commit ea38e15

Please sign in to comment.
You can’t perform that action at this time.