Pibd-21_Ievlewa_M.D._Intern.../node_modules/.bin/json-server

17 lines
401 B
Plaintext
Raw Normal View History

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-10 22:07:47 +04:00
exec "$basedir/node" "$basedir/../json-server/lib/cli/bin.js" "$@"
2023-12-03 19:52:09 +04:00
else
2023-12-10 22:07:47 +04:00
exec node "$basedir/../json-server/lib/cli/bin.js" "$@"
2023-12-03 19:52:09 +04:00
fi