Improve the error printout formatting
This commit is contained in:
parent
51a272d3e0
commit
78c83c703b
@ -16,10 +16,8 @@ echo $SCHEMA_PATH
|
|||||||
# Create the database
|
# Create the database
|
||||||
sqlite3 $DB_PATH < $SCHEMA_PATH
|
sqlite3 $DB_PATH < $SCHEMA_PATH
|
||||||
|
|
||||||
output=$(sqlite3 -column -header $DB_PATH < /lints.sql)
|
sqlite3 -column -header $DB_PATH < /lints.sql | tee output.txt
|
||||||
if [ -n "$output" ]; then
|
if [ -s output.txt ]; then
|
||||||
echo "Some checks failed."
|
echo "Some checks failed."
|
||||||
echo
|
|
||||||
echo $output
|
|
||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user