Files
zulip/tools/node
Kevin Mehall bab2c2f93a Don't print an error when nodejs is at /usr/bin/node
(imported from commit d9d7b1d258825c4ea9804eae71dffe54eedc3c1c)
2013-06-24 10:46:36 -04:00

12 lines
211 B
Bash
Executable File

#!/bin/bash -e
# Wrapper for node which finds the right binary.
if which nodejs >/dev/null 2>&1; then
# Name used by Debian etc.
exec nodejs "$@"
else
# Name used by upstream
exec node "$@"
fi