wishthis/node_modules/.bin/yaml2json
2022-02-23 17:41:13 +01:00

15 lines
326 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
"$basedir/node" "$basedir/../yamljs/bin/yaml2json" "$@"
ret=$?
else
node "$basedir/../yamljs/bin/yaml2json" "$@"
ret=$?
fi
exit $ret