From ccf34b180ac777d2b0c0b3f58515a83393194fba Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sat, 13 Apr 2019 22:49:06 -0400 Subject: _include_changes_field(): Move before use --- (limited to 'src') diff --git a/src/include.sh b/src/include.sh index b45b584..1da053b 100644 --- a/src/include.sh +++ b/src/include.sh @@ -29,6 +29,31 @@ _include_version= _include_distribution= _include_files= +_include_changes_field() +{ + local name="${1}" + local value="${2}" + shift 2 + + case "${name}" in + 'Format') + _include_format="${value}" + ;; + 'Source') + _include_source="${value}" + ;; + 'Version') + _include_version="${value}" + ;; + 'Distribution') + _include_distribution="${value}" + ;; + 'Files') + _include_files="${value}" + ;; + esac +} + include_changes() { local changes="${1}" @@ -151,28 +176,3 @@ include_changes() printf '%s\n' ${files} return 0 } - -_include_changes_field() -{ - local name="${1}" - local value="${2}" - shift 2 - - case "${name}" in - 'Format') - _include_format="${value}" - ;; - 'Source') - _include_source="${value}" - ;; - 'Version') - _include_version="${value}" - ;; - 'Distribution') - _include_distribution="${value}" - ;; - 'Files') - _include_files="${value}" - ;; - esac -} -- cgit v0.9.1