Vernon Mauery | c89d95e | 2019-04-23 15:31:51 -0700 | [diff] [blame] | 1 | From 51f3c26190f91981e35671ac87bb716dac8a9b7f Mon Sep 17 00:00:00 2001 |
| 2 | From: Vernon Mauery <vernon.mauery@intel.com> |
| 3 | Date: Wed, 27 Feb 2019 15:22:52 -0800 |
| 4 | Subject: [PATCH] create_pen_list: only print if values are set |
| 5 | |
| 6 | On a failed download of the PEN list, the create_pen_list script |
| 7 | improperly printed an invalid entry of { , "" } causing the build to |
| 8 | fail. The last line print must check that it has something to print or |
| 9 | it will print the wrong thing. |
| 10 | |
| 11 | Partially resolves ipmitool/ipmitool#11 |
| 12 | |
| 13 | Signed-off-by: Vernon Mauery <vernon.mauery@intel.com> |
| 14 | --- |
| 15 | lib/create_pen_list | 4 +++- |
| 16 | 1 file changed, 3 insertions(+), 1 deletion(-) |
| 17 | |
| 18 | diff --git a/lib/create_pen_list b/lib/create_pen_list |
| 19 | index 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 | -- |
| 34 | 2.17.1 |
| 35 | |