1
0
mirror of https://github.com/Luzifer/envrun.git synced 2024-09-19 15:42:58 +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 {
out := map[string]string{}
for _, entry := range list {
if len(entry) == 0 {
if len(entry) == 0 || entry[0] == '#' {
continue
}