From 8c34b29c98424d74703ef4ce0df5ac87f32c85d9 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Wed, 03 Oct 2012 20:21:12 -0400 Subject: Move string translation commands out of loop. --- 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}" \ -- cgit v0.9.1