Filter commented lines out of .env in envup

Makes envup filter out comments in the .env file even if the line starts
with whitespace
This commit is contained in:
Brad Urani 2017-09-26 01:19:31 -07:00 committed by Geoff Harcourt
parent 346268b6e7
commit 4fa7cd6f4b

View file

@ -2,7 +2,7 @@
function envup() {
if [ -f .env ]; then
export $(cat .env)
export $(sed '/^ *#/ d' .env)
else
echo 'No .env file found' 1>&2
return 1