mirror of
https://github.com/Luzifer/envrun.git
synced 2024-09-19 23:52:58 +00:00
Allow comments in .env file
This commit is contained in:
parent
d49af9f963
commit
b38f4c416e
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 New Issue
Block a user