wishthis/node_modules/.bin/json2yaml
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/json2yaml" "$@"
ret=$?
else
node "$basedir/../yamljs/bin/json2yaml" "$@"
ret=$?
fi
exit $ret