Skip to content

Commit ea38e15

Browse files
committed
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
1 parent e31adf0 commit ea38e15

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build/build.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@
320320
<echo message="Comparing file size with previous build" />
321321
<exec executable="bash">
322322
<arg value="-c" />
323-
<arg value="wc -c ${size.dir}/* | `which node nodejs` build/sizer.js" />
323+
<arg value="wc -c ${size.dir}/* | `which node nodejs 2>/dev/null` build/sizer.js" />
324324
</exec>
325325
<delete dir="${size.dir}" />
326326
</target>

build/build/minify-js.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash
22
dir=$(dirname $0)
3-
`which node nodejs` $dir/uglify.js $1 > $2
3+
`which node nodejs 2> /dev/null` $dir/uglify.js $1 > $2

0 commit comments

Comments
 (0)