source:
node_modules/.bin/nopt@
81bc7da
| Last change on this file since 81bc7da was 81bc7da, checked in by , 3 months ago | |
|---|---|
|
|
| File size: 381 bytes | |
| Rev | Line | |
|---|---|---|
| [81bc7da] | 1 | #!/bin/sh |
| 2 | basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") | |
| 3 | ||
| 4 | case `uname` in | |
| 5 | *CYGWIN*|*MINGW*|*MSYS*) | |
| 6 | if command -v cygpath > /dev/null 2>&1; then | |
| 7 | basedir=`cygpath -w "$basedir"` | |
| 8 | fi | |
| 9 | ;; | |
| 10 | esac | |
| 11 | ||
| 12 | if [ -x "$basedir/node" ]; then | |
| 13 | exec "$basedir/node" "$basedir/../nopt/bin/nopt.js" "$@" | |
| 14 | else | |
| 15 | exec node "$basedir/../nopt/bin/nopt.js" "$@" | |
| 16 | fi |
Note:
See TracBrowser
for help on using the repository browser.
