From 7494dc3e62f6623d63e1b9a086fb5266d8bcbce4 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Fri, 28 Sep 2012 22:57:43 -0400 Subject: Quote values in eval commands. --- (limited to 'lib') diff --git a/lib/package.sh b/lib/package.sh index 5f21449..0d94a63 100644 --- a/lib/package.sh +++ b/lib/package.sh @@ -296,7 +296,7 @@ _ob_set_source_parameter() # Escape the value. _obssp_value="$(echo "${_obssp_value}" | sed "s/'/'\\\\''/g")" - eval "_OB_SRCFIELD_${_obssp_name}=${_obssp_value}" + eval "_OB_SRCFIELD_${_obssp_name}='${_obssp_value}'" } _ob_set_binary_parameter() @@ -330,5 +330,5 @@ _ob_set_binary_parameter() # Escape the value. _obsbp_value="$(echo "${_obsbp_value}" | sed "s/'/'\\\\''/g")" - eval "_OB_BINFIELD_${_obsbp_package}_${_obsbp_name}=${_obsbp_value}" + eval "_OB_BINFIELD_${_obsbp_package}_${_obsbp_name}='${_obsbp_value}'" } -- cgit v0.9.1