blob: c9b955d6fb3dda1ca40fa293af82678e6c64080d [file] [log] [blame]
Vernon Maueryc89d95e2019-04-23 15:31:51 -07001From 51f3c26190f91981e35671ac87bb716dac8a9b7f Mon Sep 17 00:00:00 2001
2From: Vernon Mauery <vernon.mauery@intel.com>
3Date: Wed, 27 Feb 2019 15:22:52 -0800
4Subject: [PATCH] create_pen_list: only print if values are set
5
6On a failed download of the PEN list, the create_pen_list script
7improperly printed an invalid entry of { , "" } causing the build to
8fail. The last line print must check that it has something to print or
9it will print the wrong thing.
10
11Partially resolves ipmitool/ipmitool#11
12
13Signed-off-by: Vernon Mauery <vernon.mauery@intel.com>
14---
15 lib/create_pen_list | 4 +++-
16 1 file changed, 3 insertions(+), 1 deletion(-)
17
18diff --git a/lib/create_pen_list b/lib/create_pen_list
19index e2b44d2..81864ad 100755
20--- a/lib/create_pen_list
21+++ b/lib/create_pen_list
22@@ -67,7 +67,9 @@ parse_pen_list() {
23 }
24
25 END {
26- print "{ " PEN ", \"" ENTERPRISE "\" },"
27+ if(PEN) {
28+ print "{ " PEN ", \"" ENTERPRISE "\" },"
29+ }
30 }'
31 }
32
33--
342.17.1
35