#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")

case `uname` in
    *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac

if [ -z "$NODE_PATH" ]; then
  export NODE_PATH="/home/ettinger/src/profullstack.com/mcp-server/mcp_modules/link-shortener/node_modules/.pnpm/minimatch@5.1.6/node_modules/minimatch/node_modules/.pnpm/nyc@15.1.0/node_modules/nyc/bin/node_modules:/home/ettinger/src/profullstack.com/mcp-server/mcp_modules/link-shortener/node_modules/.pnpm/minimatch@5.1.6/node_modules/minimatch/node_modules/.pnpm/nyc@15.1.0/node_modules/nyc/node_modules:/home/ettinger/src/profullstack.com/mcp-server/mcp_modules/link-shortener/node_modules/.pnpm/minimatch@5.1.6/node_modules/minimatch/node_modules/.pnpm/nyc@15.1.0/node_modules:/home/ettinger/src/profullstack.com/mcp-server/mcp_modules/link-shortener/node_modules/.pnpm/minimatch@5.1.6/node_modules/minimatch/node_modules/.pnpm/node_modules"
else
  export NODE_PATH="/home/ettinger/src/profullstack.com/mcp-server/mcp_modules/link-shortener/node_modules/.pnpm/minimatch@5.1.6/node_modules/minimatch/node_modules/.pnpm/nyc@15.1.0/node_modules/nyc/bin/node_modules:/home/ettinger/src/profullstack.com/mcp-server/mcp_modules/link-shortener/node_modules/.pnpm/minimatch@5.1.6/node_modules/minimatch/node_modules/.pnpm/nyc@15.1.0/node_modules/nyc/node_modules:/home/ettinger/src/profullstack.com/mcp-server/mcp_modules/link-shortener/node_modules/.pnpm/minimatch@5.1.6/node_modules/minimatch/node_modules/.pnpm/nyc@15.1.0/node_modules:/home/ettinger/src/profullstack.com/mcp-server/mcp_modules/link-shortener/node_modules/.pnpm/minimatch@5.1.6/node_modules/minimatch/node_modules/.pnpm/node_modules:$NODE_PATH"
fi
if [ -x "$basedir/node" ]; then
  exec "$basedir/node"  "$basedir/../nyc/bin/nyc.js" "$@"
else
  exec node  "$basedir/../nyc/bin/nyc.js" "$@"
fi
