diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-04-11 18:15:41 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-04-11 18:15:41 (EDT) |
commit | f79dea0f5e1b89488d73bfb0360e651b8d578e15 (patch) | |
tree | 682bacab015acd1175f57b7bcbc8b65e4cb02ba5 /src/control.sh | |
parent | d19eb991c6cf206dba7a9ecc0732c4ab5e7b4f85 (diff) |
Consistently shift function arguments
Diffstat (limited to 'src/control.sh')
-rw-r--r-- | src/control.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/control.sh b/src/control.sh index 61f49a2..f7c4bcf 100644 --- a/src/control.sh +++ b/src/control.sh @@ -25,16 +25,17 @@ control_line_nr= parse_control() { + control_file="${1}" local field_cb="${2}" local req_fields="${3}" local opt_fields="${4}" + shift 4 local all_fields= local got_fields= local line= local name= local value= - control_file="${1}" control_line_nr=0 req_fields="$(printf '%s\n' ${req_fields})" @@ -117,8 +118,8 @@ parse_control() parse_control_error() { local msgid="${1}" - local file_info= shift 1 + local file_info= if [ ${control_line_nr} -eq 0 ]; then file_info="$(printf '%20s:' "${control_file}")" |