diff options
author | P. J. McDermott <pjm@nac.net> | 2012-10-03 20:21:12 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2012-10-03 20:21:12 (EDT) |
commit | 8c34b29c98424d74703ef4ce0df5ac87f32c85d9 (patch) | |
tree | 8225252558d7cdde84bea3b9589441b5eade5462 | |
parent | abdfb91acbd1cefe6d705ec03c1fba9453ef4eea (diff) |
Move string translation commands out of loop.
-rw-r--r-- | lib/package.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/package.sh b/lib/package.sh index 2ff1623..bd73b83 100644 --- a/lib/package.sh +++ b/lib/package.sh @@ -112,11 +112,11 @@ ob_parse_package_metadata() >>"${_obppm_cache_file}" done for _obppm_pkg in $(ob_get_binary_packages); do + _obppm_pkg="$(echo "${_obppm_pkg}" | tr 'a-z' 'A-Z' | \ + tr -dC 'A-Z0-9')" for _obppm_param_name in ${_OB_BINARY_PARAMETERS}; do _obppm_param_value="$(ob_get_binary_parameter "${_obppm_pkg}" \ "${_obppm_param_name}" | sed "s/'/'\\\\''/g")" - _obppm_pkg="$(echo "${_obppm_pkg}" | tr 'a-z' 'A-Z' | \ - tr -dC 'A-Z0-9')" printf "%s='%s'\n" \ "_OB_BINFIELD_${_obppm_pkg}_${_obppm_param_name}" \ "${_obppm_param_value}" \ |