Files
zulip/tools/node
Keegan McAllister 02ce209b5e Add a generic script to run the right Node binary
(imported from commit cf187323786cf1ee576ec70b6f7db4cbf61d6911)
2013-02-20 16:02:30 -05:00

12 lines
206 B
Bash
Executable File

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