2025-01-02 03:13:50 +00:00
|
|
|
#!/bin/sh
|
|
|
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
|
|
|
|
|
|
case `uname` in
|
2025-04-02 15:45:33 +00:00
|
|
|
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
2025-01-02 03:13:50 +00:00
|
|
|
esac
|
|
|
|
|
|
|
|
if [ -x "$basedir/node" ]; then
|
2025-04-02 15:45:33 +00:00
|
|
|
"$basedir/node" "$basedir/../mathjs/bin/cli.js" "$@"
|
|
|
|
ret=$?
|
2025-01-02 03:13:50 +00:00
|
|
|
else
|
2025-04-02 15:45:33 +00:00
|
|
|
node "$basedir/../mathjs/bin/cli.js" "$@"
|
|
|
|
ret=$?
|
2025-01-02 03:13:50 +00:00
|
|
|
fi
|
2025-04-02 15:45:33 +00:00
|
|
|
exit $ret
|