fix env bug: value contains '=' not work
This commit is contained in:
@@ -50,7 +50,7 @@ func parseEnvFileAndSetEnv(filePath string, printToScreen, printWithExport bool)
|
||||
continue
|
||||
}
|
||||
parts := strings.Split(trimedLine, "=")
|
||||
if len(parts) != 2 {
|
||||
if len(parts) < 2 {
|
||||
return "", fmt.Errorf("line %v is malformed: `%v`", i+1, trimedLine)
|
||||
}
|
||||
if strings.TrimSpace(parts[0]) != parts[0] {
|
||||
|
||||
Reference in New Issue
Block a user