erplibre/script/maintenance/prettier.sh
2021-06-27 00:52:18 -04:00

9 lines
203 B
Bash
Executable file

#!/usr/bin/env bash
# This will format all js,css,html
# argument 1: directory or file to format
prettier --write $@
retVal=$?
if [[ $retVal -ne 0 ]]; then
echo "Error prettier format"
exit 1
fi