2023-12-03 19:52:09 +04:00
|
|
|
#!/bin/sh
|
|
|
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
|
|
|
|
|
|
case `uname` in
|
|
|
|
*CYGWIN*|*MINGW*|*MSYS*)
|
|
|
|
if command -v cygpath > /dev/null 2>&1; then
|
|
|
|
basedir=`cygpath -w "$basedir"`
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
if [ -x "$basedir/node" ]; then
|
2023-12-22 00:29:13 +04:00
|
|
|
exec "$basedir/node" "$basedir/../semver/bin/semver.js" "$@"
|
2023-12-03 19:52:09 +04:00
|
|
|
else
|
2023-12-22 00:29:13 +04:00
|
|
|
exec node "$basedir/../semver/bin/semver.js" "$@"
|
2023-12-03 19:52:09 +04:00
|
|
|
fi
|