install prettier if not found, update whitespace

This commit is contained in:
AJ ONeal 2019-06-01 05:29:14 +00:00
parent ba73451211
commit e7ec8f760b
2 changed files with 13 additions and 9 deletions

View File

@ -38,6 +38,10 @@ EOF
if [ "y" == "$my_pretty" ]; then
# TODO test for / install 'prettier'
if [ -z "$(command -v prettier)" ]; then
curl -fsL bit.ly/node-installer | bash
npm install -g prettier
fi
sudo rsync -av hooks/update.format.full "${my_repo}/hooks/update"
fi