Account for nodejs sometimes being installed as 'node' and sometimes as 'nodejs'

(imported from commit 751216c9544671106dd555823e31ad9d4553a7aa)
This commit is contained in:
Zev Benjamin 2013-07-26 18:03:46 -04:00
parent 102b495609
commit b950121fc2
1 changed files with 9 additions and 3 deletions

View File

@ -1,6 +1,12 @@
#!/bin/bash -e
cd "$(dirname "$0")"/../zephyr/tests/frontend/node
node message_tour.js
node unread.js
node search.js
NODEJS=$(which nodejs)
if [ ! -x "$NODEJS" ]; then
NODEJS=$(which node)
fi
$NODEJS message_tour.js
$NODEJS unread.js
$NODEJS search.js