mirror of
https://github.com/github/codeql-action
synced 2026-05-23 20:00:54 +03:00
13 lines
364 B
Bash
13 lines
364 B
Bash
|
|
#!/bin/sh
|
||
|
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||
|
|
|
||
|
|
case `uname` in
|
||
|
|
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||
|
|
esac
|
||
|
|
|
||
|
|
if [ -x "$basedir/node" ]; then
|
||
|
|
exec "$basedir/node" "$basedir/../eslint-plugin-github/bin/eslint-ignore-errors.js" "$@"
|
||
|
|
else
|
||
|
|
exec node "$basedir/../eslint-plugin-github/bin/eslint-ignore-errors.js" "$@"
|
||
|
|
fi
|