Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
Only source one dotenv file.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmachine committed Sep 29, 2016
1 parent ab71641 commit 7578635
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions icekit/bin/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@ set -e

# Source dotenv files.
set -o allexport
for filename in ".env.$DOTENV" .env.local; do
if [[ -f "$ICEKIT_PROJECT_DIR/$filename" ]]; then
source "$ICEKIT_PROJECT_DIR/$filename"
fi
done
if [[ -f "$ICEKIT_PROJECT_DIR/.env.${DOTENV:-local}" ]]; then
source "$ICEKIT_PROJECT_DIR/.env.${DOTENV:-local}"
fi
set +o allexport

if [[ -n "${DOCKER+1}" ]]; then
Expand Down

0 comments on commit 7578635

Please sign in to comment.