install prettier if not found, update whitespace
This commit is contained in:
parent
ba73451211
commit
e7ec8f760b
|
@ -38,6 +38,10 @@ EOF
|
||||||
|
|
||||||
if [ "y" == "$my_pretty" ]; then
|
if [ "y" == "$my_pretty" ]; then
|
||||||
# TODO test for / install 'prettier'
|
# 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"
|
sudo rsync -av hooks/update.format.full "${my_repo}/hooks/update"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue