Skip to content

Commit

Permalink
Add load env script
Browse files Browse the repository at this point in the history
  • Loading branch information
junian committed May 24, 2018
1 parent 68a7931 commit e7d6f52
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions load-env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

if [ -f ./.env ]; then
source ./.env
export $(cut -d= -f1 ./.env)
else
echo "Unable to find .env file." >&2
echo "Create a new .env by copying .env.example file." >&2
exit 1
fi

0 comments on commit e7d6f52

Please sign in to comment.