create_pen_list: only print if values are set

On a failed download of the PEN list, the create_pen_list script
improperly printed an invalid entry of { , "" } causing the build to
fail. The last line print must check that it has something to print or
it will print the wrong thing.

Partially resolves ipmitool/ipmitool#11

Signed-off-by: Vernon Mauery <vernon.mauery@intel.com>
This commit is contained in:
Vernon Mauery 2019-02-27 15:22:52 -08:00 committed by Alexander Amelkin
parent 9fa01f1a54
commit e65a96b38d

View File

@ -67,7 +67,9 @@ parse_pen_list() {
}
END {
print "{ " PEN ", \"" ENTERPRISE "\" },"
if(PEN) {
print "{ " PEN ", \"" ENTERPRISE "\" },"
}
}'
}