thedesk/app/node_modules/.bin/semver

16 lines
305 B
Plaintext
Raw Normal View History

2018-02-18 18:29:06 +11: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-04-01 00:55:47 +11:00
"$basedir/node" "$basedir/../semver/bin/semver" "$@"
2018-02-18 18:29:06 +11:00
ret=$?
else
2018-04-01 00:55:47 +11:00
node "$basedir/../semver/bin/semver" "$@"
2018-02-18 18:29:06 +11:00
ret=$?
fi
exit $ret