mirror of https://github.com/docker/cli.git
Return bufio error if set in ParseEnvFile
Return an error value if bufio failed to properly read a token. Avoids running a container with partial environment. Fixes: #14266 Signed-off-by: Matthieu Hauglustaine <matt.hauglustaine@gmail.com>
This commit is contained in:
parent
0c721e1ad5
commit
0ede41afbd
|
@ -40,7 +40,7 @@ func ParseEnvFile(filename string) ([]string, error) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return lines, nil
|
return lines, scanner.Err()
|
||||||
}
|
}
|
||||||
|
|
||||||
var whiteSpaces = " \t"
|
var whiteSpaces = " \t"
|
||||||
|
|
Loading…
Reference in New Issue