Skip to content

Commit

Permalink
Filter commented lines out of .env in envup
Browse files Browse the repository at this point in the history
Makes envup filter out comments in the .env file even if the line starts
with whitespace
  • Loading branch information
bradurani authored and geoffharcourt committed Sep 26, 2017
1 parent 346268b commit 4fa7cd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zsh/functions/envup
Expand Up @@ -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
Expand Down

0 comments on commit 4fa7cd6

Please sign in to comment.