From 31a80890adcdb82076477ef67746e8893542b15d Mon Sep 17 00:00:00 2001 From: Junian Triajianto Date: Sat, 26 May 2018 13:34:30 +0700 Subject: [PATCH] Use .env.example to load env --- load-env.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/load-env.sh b/load-env.sh index 8fc4880..635a5f0 100755 --- a/load-env.sh +++ b/load-env.sh @@ -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