summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVernon Mauery <vernon.mauery@intel.com>2019-02-27 15:22:52 -0800
committerAlexander Amelkin <mocbuhtig@amelkin.msk.ru>2019-05-29 15:56:11 +0300
commite65a96b38d49a7b3a8bdfb28c91fc6a8ef035a3d (patch)
tree8262044ee4d85cb8f1b4ad710bd3f148521d9aee
parent9fa01f1a54d695d5ff7bae3f60d9c1e9f5383bee (diff)
downloadipmitool-e65a96b38d49a7b3a8bdfb28c91fc6a8ef035a3d.tar.gz
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>
-rwxr-xr-xlib/create_pen_list4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/create_pen_list b/lib/create_pen_list
index e2b44d2..81864ad 100755
--- a/lib/create_pen_list
+++ b/lib/create_pen_list
@@ -67,7 +67,9 @@ parse_pen_list() {
}
END {
- print "{ " PEN ", \"" ENTERPRISE "\" },"
+ if(PEN) {
+ print "{ " PEN ", \"" ENTERPRISE "\" },"
+ }
}'
}