From c5ee52abbca33b4a725762bfbbae470f0870711a Mon Sep 17 00:00:00 2001 From: Daniel Bauer Date: Mon, 7 Sep 2020 13:26:07 +0200 Subject: [PATCH] BugFix: Invalid json file --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index e41e703..5e53b8f 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -4,7 +4,7 @@ /scc $@ -f json -o scc-result.json # Trim json file to only contain relevant data -cat scc-result.json | /jq '.[] | { name: .Name, lines: .Lines, code: .Code, comment: .Comment, blank: .Blank, files: .Count }' > healthcheck-loc.json +cat scc-result.json | /jq 'map({ name: .Name, lines: .Lines, code: .Code, comment: .Comment, blank: .Blank, files: .Count })' > healthcheck-loc.json chmod 777 healthcheck-loc.json # Output result to console