2018-01-05 18:48:13 +00:00
|
|
|
#!/bin/sh
|
|
|
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
|
|
|
|
|
|
case `uname` in
|
|
|
|
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
if [ -x "$basedir/node" ]; then
|
2018-01-23 04:05:59 +00:00
|
|
|
"$basedir/node" "$basedir/../rc/cli.js" "$@"
|
2018-01-05 18:48:13 +00:00
|
|
|
ret=$?
|
|
|
|
else
|
2018-01-23 04:05:59 +00:00
|
|
|
node "$basedir/../rc/cli.js" "$@"
|
2018-01-05 18:48:13 +00:00
|
|
|
ret=$?
|
|
|
|
fi
|
|
|
|
exit $ret
|