2013-02-16 11:10:08 +01:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
|
|
|
# Wrapper for node which finds the right binary.
|
|
|
|
|
2013-06-24 16:46:36 +02:00
|
|
|
if which nodejs >/dev/null 2>&1; then
|
2013-02-16 11:10:08 +01:00
|
|
|
# Name used by Debian etc.
|
|
|
|
exec nodejs "$@"
|
|
|
|
else
|
|
|
|
# Name used by upstream
|
|
|
|
exec node "$@"
|
|
|
|
fi
|