diff options
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}")" |