1
0
Fork 0
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:
Knut Ahlers 2016-04-15 22:12:15 +02:00
parent d49af9f963
commit b38f4c416e
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -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
} }