From cf9919d3a3422f592bdaade73cf71204ef78856f Mon Sep 17 00:00:00 2001 From: Tai Lee Date: Thu, 13 Aug 2020 22:24:08 +1000 Subject: [PATCH] Only decrypt files with transcrypt if `.git` directory exists. --- ixc_django_docker/bin/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ixc_django_docker/bin/entrypoint.sh b/ixc_django_docker/bin/entrypoint.sh index 16a7df9..0377b38 100755 --- a/ixc_django_docker/bin/entrypoint.sh +++ b/ixc_django_docker/bin/entrypoint.sh @@ -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