zulip/tools/test-js-with-node
Zev Benjamin e8112ff1c1 test-js-with-node: Fix searching for node binary
Previously, when the first `which` failed, the entire script would
fail with exist status 1 because we pass `-e` to the interpreter.

(imported from commit 601de3b3e3edd90110fc478f7874e644009d1b62)
2013-07-30 17:58:06 -04:00

10 lines
166 B
Bash
Executable File

#!/bin/bash -e
cd "$(dirname "$0")"/../zephyr/tests/frontend/node
NODEJS=$(which nodejs || which node)
$NODEJS message_tour.js
$NODEJS unread.js
$NODEJS search.js