diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-03-16 23:05:57 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-03-16 23:05:57 (EDT) |
commit | ef6455d8d03b0b999968ab6f8444baa14f68bb02 (patch) | |
tree | fa884bf971ebbfc6cb80bdbb0e9867451b54dede | |
parent | 2ec8ae840f87dee29eba81e2d3abd282b422dff2 (diff) |
ob_parse_control(): Fix variable name in expansion
Bug found with "set -u" in test suite.
-rw-r--r-- | lib/control.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/control.sh b/lib/control.sh index 58827ea..3c2507e 100644 --- a/lib/control.sh +++ b/lib/control.sh @@ -125,7 +125,7 @@ ob_parse_control() case "${req_fields}" in *" ${name} "*) # Required field: remove from list. req_fields="${req_fields% ${name} *}$(:\ - ) ${req#* ${field} }" + ) ${req_fields#* ${field} }" continue esac if ${check_fields}; then |