Files
SWebStatic/node_modules/.bin/workerd
T

17 lines
387 B
Bash
Raw Normal View History

2026-07-08 18:29:36 +08: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
exec "$basedir/node" "$basedir/../workerd/bin/workerd" "$@"
else
exec node "$basedir/../workerd/bin/workerd" "$@"
fi