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