16 lines
278 B
Text
16 lines
278 B
Text
|
#!/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
|