blob: fb86fde46831151ead2c2d29dbe2b04d6c068cd1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/sh -eu
directory="$XDG_CONFIG_HOME/vale"
styles="$directory/styles"
mkdir -p "$directory" "$styles";
if [ "${1:-}" = "--update" ]; then
svn export --force https://github.com/errata-ai/Google/trunk/Google "$styles/google";
svn export --force https://github.com/errata-ai/joblint/trunk/Joblint "$styles/joblint";
svn export --force https://github.com/errata-ai/Microsoft/trunk/Microsoft "$styles/microsoft";
svn export --force https://github.com/errata-ai/proselint/trunk/proselint "$styles/proselint";
svn export --force https://github.com/errata-ai/write-good/trunk/write-good "$styles/write-good";
exit;
fi
$(which vale --all | grep -v "local/bin" | head -n 1) --config "$directory/vale.ini" "$@";
|