16 lines
302 B
Bash
16 lines
302 B
Bash
#!/bin/sh
|
|
basedir=`dirname "$0"`
|
|
|
|
case `uname` in
|
|
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
|
esac
|
|
|
|
if [ -x "$basedir/node" ]; then
|
|
"$basedir/node" "$basedir/../har-validator/bin/har-validator" "$@"
|
|
ret=$?
|
|
else
|
|
node "$basedir/../har-validator/bin/har-validator" "$@"
|
|
ret=$?
|
|
fi
|
|
exit $ret
|