15 lines
278 B
Bash
15 lines
278 B
Bash
#!/bin/sh
|
|
basedir=`dirname "$0"`
|
|
|
|
case `uname` in
|
|
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
|
esac
|
|
|
|
if [ -x "$basedir/node" ]; then
|
|
"$basedir/node" "$basedir/../express/bin/express" "$@"
|
|
ret=$?
|
|
else
|
|
node "$basedir/../express/bin/express" "$@"
|
|
ret=$?
|
|
fi
|
|
exit $ret
|