#!/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 [ -z "$NODE_PATH" ]; then
  export NODE_PATH="/blog/node_modules/.pnpm/@astrojs+check@0.9.6_prettier-plugin-astro@0.14.1_prettier@3.7.4_typescript@5.9.3/node_modules/@astrojs/check/node_modules:/blog/node_modules/.pnpm/@astrojs+check@0.9.6_prettier-plugin-astro@0.14.1_prettier@3.7.4_typescript@5.9.3/node_modules:/blog/node_modules/.pnpm/node_modules"
else
  export NODE_PATH="/blog/node_modules/.pnpm/@astrojs+check@0.9.6_prettier-plugin-astro@0.14.1_prettier@3.7.4_typescript@5.9.3/node_modules/@astrojs/check/node_modules:/blog/node_modules/.pnpm/@astrojs+check@0.9.6_prettier-plugin-astro@0.14.1_prettier@3.7.4_typescript@5.9.3/node_modules:/blog/node_modules/.pnpm/node_modules:$NODE_PATH"
fi
if [ -x "$basedir/node" ]; then
  exec "$basedir/node"  "$basedir/../@astrojs/check/bin/astro-check.js" "$@"
else
  exec node  "$basedir/../@astrojs/check/bin/astro-check.js" "$@"
fi
# cmd-shim-target=/blog/node_modules/@astrojs/check/bin/astro-check.js
