Skip to content

Commit

Permalink
Use .env.example to load env
Browse files Browse the repository at this point in the history
  • Loading branch information
junian committed May 26, 2018
1 parent 09d16ca commit 31a8089
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions load-env.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

if [ -f ./.env ]; then
source ./.env
if [ -f ./.env.example ]; then
source ./.env.example
export $(cut -d= -f1 ./.env.example)
else
echo "Unable to find .env file." >&2
Expand Down

0 comments on commit 31a8089

Please sign in to comment.