We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27ec657 commit 7decb12Copy full SHA for 7decb12
airbyte-workers/src/main/resources/dbt_transformation_entrypoint.sh
@@ -4,7 +4,7 @@ set -e
4
CWD=$(pwd)
5
if [[ -f "${CWD}/git_repo/dbt_project.yml" ]]; then
6
# Find profile name used in the custom dbt project:
7
- PROFILE_NAME=$(grep -e "profile:" < "${CWD}/git_repo/dbt_project.yml" | sed -E "s/profile: *['\"](.*)['\"]/\1/")
+ PROFILE_NAME=$(grep -e "profile:" < "${CWD}/git_repo/dbt_project.yml" | sed -E "s/profile: *['\"]?([^'\"]*)['\"]?/\1/")
8
if [[ -n "${PROFILE_NAME}" ]]; then
9
mv "${CWD}/profiles.yml" "${CWD}/profiles.txt"
10
# Refer to the appropriate profile name in the profiles.yml file
0 commit comments