Skip to content

Commit

Permalink
build: removes disturbing error outputs on which call
Browse files Browse the repository at this point in the history
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 ea38e15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion build/build/minify-js.sh
Original file line number Diff line number Diff line change
@@ -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.