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:
parent
346268b6e7
commit
4fa7cd6f4b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue