#!/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/workspace/aops-hermes/node_modules/.pnpm/marked@14.1.3/node_modules/marked/bin/node_modules:/home/workspace/aops-hermes/node_modules/.pnpm/marked@14.1.3/node_modules/marked/node_modules:/home/workspace/aops-hermes/node_modules/.pnpm/marked@14.1.3/node_modules:/home/workspace/aops-hermes/node_modules/.pnpm/node_modules:/home/workspace/aops-hermes/node_modules:/home/workspace/node_modules:/home/node_modules:/node_modules:/home/workspace/aops-hermes/packages/ops-assistant/node_modules:/home/workspace/aops-hermes/packages/node_modules"
else
  export NODE_PATH="$NODE_PATH:/home/workspace/aops-hermes/node_modules/.pnpm/marked@14.1.3/node_modules/marked/bin/node_modules:/home/workspace/aops-hermes/node_modules/.pnpm/marked@14.1.3/node_modules/marked/node_modules:/home/workspace/aops-hermes/node_modules/.pnpm/marked@14.1.3/node_modules:/home/workspace/aops-hermes/node_modules/.pnpm/node_modules:/home/workspace/aops-hermes/node_modules:/home/workspace/node_modules:/home/node_modules:/node_modules:/home/workspace/aops-hermes/packages/ops-assistant/node_modules:/home/workspace/aops-hermes/packages/node_modules"
fi
if [ -x "$basedir/node" ]; then
  exec "$basedir/node"  "$basedir/../../../../node_modules/.pnpm/marked@14.1.3/node_modules/marked/bin/marked.js" "$@"
else
  exec node  "$basedir/../../../../node_modules/.pnpm/marked@14.1.3/node_modules/marked/bin/marked.js" "$@"
fi
