From 3e575635c58702809416d18d179ac9b051adbe3d Mon Sep 17 00:00:00 2001 From: Orion Kindel Date: Wed, 19 Jul 2023 20:23:12 -0500 Subject: [PATCH] fix: gen-migrations workflow --- scripts/build.sh | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/scripts/build.sh b/scripts/build.sh index bdffae8..aa52cf5 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -60,12 +60,5 @@ cd "./$base_or_head" docker compose up -d "$base_or_head" 1>/dev/null isready -initdb || ( - cd "./$base_or_head" - docker compose logs "$base_or_head" -) -ls ./schema/ | xargs -I{} bash -c "set -e; $(declare -f query_file); query_file \"$(db dnim)\" ./schema/{}" || \ - ( - cd "./$base_or_head" - docker compose logs "$base_or_head" - ) +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"