From 13e675b6dbf4a22dc80328df43f0ad85a2b906d5 Mon Sep 17 00:00:00 2001 From: Akos Birmacher <37296013+BirmacherAkos@users.noreply.github.com> Date: Fri, 21 Dec 2018 14:29:11 +0100 Subject: [PATCH] fix: fix the "Failed to parse build settings, error: unknown build settings" error which caused if the output contained a line without a `=` (no key - value pair) (#7) --- main.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/main.go b/main.go index 786e0ad..22be28c 100644 --- a/main.go +++ b/main.go @@ -303,14 +303,6 @@ func parseShowBuildSettingsOutput(out string) (serialized.Object, error) { lines := strings.Split(out, "\n") for _, line := range lines { - if strings.HasPrefix(line, "Build settings") { - continue - } - - if strings.HasPrefix(line, "User defaults from command line") { - continue - } - if line == "" { continue } @@ -318,7 +310,7 @@ func parseShowBuildSettingsOutput(out string) (serialized.Object, error) { split := strings.Split(line, " = ") if len(split) < 2 { - return nil, fmt.Errorf("unknown build settings: %s", line) + continue } key := strings.TrimSpace(split[0])