From 78c83c703bf09cd13c34d16856e59b766cba2d44 Mon Sep 17 00:00:00 2001 From: Alessio Date: Sun, 17 Nov 2024 20:11:09 -0800 Subject: [PATCH] Improve the error printout formatting --- entrypoint.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 340d2ec..818fdb5 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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