Skip to content

Commit

Permalink
Eliminate spurious error message from which.
Browse files Browse the repository at this point in the history
Some versions of `which` (Cygwin's among them) spit out an error to stderr when not all their args are found. We only expect one of these to be found anyway.
  • Loading branch information
dmethvin committed Nov 6, 2011
1 parent 8380e12 commit 02629f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -5,7 +5,7 @@ BUILD_DIR = build
PREFIX = .
DIST_DIR = ${PREFIX}/dist

JS_ENGINE ?= `which node nodejs`
JS_ENGINE ?= `which node nodejs 2>/dev/null`
COMPILER = ${JS_ENGINE} ${BUILD_DIR}/uglify.js --unsafe
POST_COMPILER = ${JS_ENGINE} ${BUILD_DIR}/post-compile.js

Expand Down

0 comments on commit 02629f1

Please sign in to comment.