mirror of
https://github.com/Luzifer/envrun.git
synced 2024-11-09 23:00:07 +00:00
Allow comments in .env file
This commit is contained in:
parent
d49af9f963
commit
b38f4c416e
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -32,7 +32,7 @@ func infoLog(message string, args ...interface{}) {
|
||||||
func envListToMap(list []string) map[string]string {
|
func envListToMap(list []string) map[string]string {
|
||||||
out := map[string]string{}
|
out := map[string]string{}
|
||||||
for _, entry := range list {
|
for _, entry := range list {
|
||||||
if len(entry) == 0 {
|
if len(entry) == 0 || entry[0] == '#' {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue