Skip to content

Commit

Permalink
Only decrypt files with transcrypt if .git directory exists.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmachine committed Aug 13, 2020
1 parent c755fce commit cf9919d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ixc_django_docker/bin/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ if [[ -f "$PROJECT_DIR/.env.local" ]]; then
fi

# Decrypt files with transcrypt.
if [[ -n "$TRANSCRYPT_PASSWORD" ]]; then
if [[ -d .git && -n "$TRANSCRYPT_PASSWORD" ]]; then
git status &> /dev/null # See: https://github.com/elasticdog/transcrypt/issues/37
# Use `--force` to overwrite "missing" secrets that are listed in
# `.dockerignore` to avoid accidentally copying decrypted secrets into an
Expand Down

0 comments on commit cf9919d

Please sign in to comment.