Improve the error printout formatting

This commit is contained in:
Alessio 2024-11-17 20:11:09 -08:00
parent 51a272d3e0
commit 78c83c703b

View File

@ -16,10 +16,8 @@ echo $SCHEMA_PATH
# Create the database
sqlite3 $DB_PATH < $SCHEMA_PATH
output=$(sqlite3 -column -header $DB_PATH < /lints.sql)
if [ -n "$output" ]; then
sqlite3 -column -header $DB_PATH < /lints.sql | tee output.txt
if [ -s output.txt ]; then
echo "Some checks failed."
echo
echo $output
exit 2
fi