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"