Skip to content

Commit

Permalink
flip operator used
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterOdin committed Oct 2, 2023
1 parent f44d656 commit 6bd4998
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
#!/usr/bin/env bash

if [ ! -z "${DBT_PROFILES}" ]; then
if [ -n "${DBT_PROFILES}" ]; then
echo "${DBT_PROFILES}" > /.dbt/profiles.yml
elif [ -f ~/.dbt/profiles.yml ]; then
cp ~/.dbt/profiles.yml /.dbt/profiles.yml
fi

if [ ! -z "${AWS_CREDENTIALS}" ]; then
if [ -n "${AWS_CREDENTIALS}" ]; then
echo "${AWS_CREDENTIALS}" > /.dbt/aws_credentials
elif [ -f ~/.aws/credentials ]; then
cp ~/.aws/credentials /.dbt/aws_credentials
fi

if [ ! -z "${BQ_KEYFILE}" ]; then
if [ -n "${BQ_KEYFILE}" ]; then
echo "${BQ_KEYFILE}" > /.dbt/bq_keyfile.json
elif [ -f ~/.dbt/keyfile.json ]; then
cp ~/.dbt/bq_keyfile.json /.dbt/bq_keyfile.json
Expand Down

0 comments on commit 6bd4998

Please sign in to comment.