diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2020-07-05 23:27:17 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2020-07-05 23:27:17 (EDT) |
commit | 5e37d4b9e4d46ac1ccb6c2b8ea9630c3ac7b7e03 (patch) | |
tree | 300ce357e0fc542005deae1ad35af6efe90db0c3 | |
parent | 984ec34f0ab73a8558ad417db3b1f9651029a46f (diff) |
_ob_parse_package_metadata_2(): Validate sections only if present
-rw-r--r-- | lib/package/2.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/package/2.sh b/lib/package/2.sh index 471425b..6a2b2f9 100644 --- a/lib/package/2.sh +++ b/lib/package/2.sh @@ -41,7 +41,7 @@ _ob_parse_package_metadata_2() "${_OB_BINARY_FIELDS_REQUIRED_2}" \ "${_OB_BINARY_FIELDS_OPTIONAL_2}" sect="$(ob_get_binary_parameter "${pkg}" 'Section')" - if ! ob_validate_section "${sect}"; then + if [ -n "${sect}" ] && ! ob_validate_section "${sect}"; then _ob_warn_msg 'bad_section' "${pkg}" "${sect}" continue fi |