#!/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/vite@2.9.18_less@4.2.0/node_modules/vite/bin/node_modules:/home/workspace/aops-hermes/node_modules/.pnpm/vite@2.9.18_less@4.2.0/node_modules/vite/node_modules:/home/workspace/aops-hermes/node_modules/.pnpm/vite@2.9.18_less@4.2.0/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/node_modules/.pnpm/@vitejs+plugin-vue@2.3.4_vite@2.9.18+vue@3.2.47/node_modules/@vitejs/plugin-vue/node_modules:/home/workspace/aops-hermes/node_modules/.pnpm/@vitejs+plugin-vue@2.3.4_vite@2.9.18+vue@3.2.47/node_modules/@vitejs/node_modules:/home/workspace/aops-hermes/node_modules/.pnpm/@vitejs+plugin-vue@2.3.4_vite@2.9.18+vue@3.2.47/node_modules"
else
  export NODE_PATH="$NODE_PATH:/home/workspace/aops-hermes/node_modules/.pnpm/vite@2.9.18_less@4.2.0/node_modules/vite/bin/node_modules:/home/workspace/aops-hermes/node_modules/.pnpm/vite@2.9.18_less@4.2.0/node_modules/vite/node_modules:/home/workspace/aops-hermes/node_modules/.pnpm/vite@2.9.18_less@4.2.0/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/node_modules/.pnpm/@vitejs+plugin-vue@2.3.4_vite@2.9.18+vue@3.2.47/node_modules/@vitejs/plugin-vue/node_modules:/home/workspace/aops-hermes/node_modules/.pnpm/@vitejs+plugin-vue@2.3.4_vite@2.9.18+vue@3.2.47/node_modules/@vitejs/node_modules:/home/workspace/aops-hermes/node_modules/.pnpm/@vitejs+plugin-vue@2.3.4_vite@2.9.18+vue@3.2.47/node_modules"
fi
if [ -x "$basedir/node" ]; then
  exec "$basedir/node"  "$basedir/../../../../../../vite@2.9.18_less@4.2.0/node_modules/vite/bin/vite.js" "$@"
else
  exec node  "$basedir/../../../../../../vite@2.9.18_less@4.2.0/node_modules/vite/bin/vite.js" "$@"
fi
