From 533493e7f08fa36899bbdee8f64e00c1a7e97917 Mon Sep 17 00:00:00 2001 From: Orion Kindel Date: Wed, 19 Jul 2023 20:42:19 -0500 Subject: [PATCH] fix: gen-migrations workflow --- scripts/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/build.sh b/scripts/build.sh index 77dfbc7..0f2a30c 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -60,5 +60,5 @@ cd "./$base_or_head" docker compose up -d "$base_or_head" isready -initdb || docker compose logs "$base_or_head" -ls ./schema/ | xargs -I{} bash -c "set -e; $(declare -f query_file); query_file \"$(db dnim)\" ./schema/{}" || docker compose logs "$base_or_head" +initdb || (docker compose logs "$base_or_head" && exit 1) +ls ./schema/ | xargs -I{} bash -c "set -e; $(declare -f query_file); query_file \"$(db dnim)\" ./schema/{}" || (docker compose logs "$base_or_head" && exit 1)