mirror of https://github.com/zulip/zulip.git
Account for nodejs sometimes being installed as 'node' and sometimes as 'nodejs'
(imported from commit 751216c9544671106dd555823e31ad9d4553a7aa)
This commit is contained in:
parent
102b495609
commit
b950121fc2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue