summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-09-28 22:57:43 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-09-28 22:57:43 (EDT)
commit7494dc3e62f6623d63e1b9a086fb5266d8bcbce4 (patch)
tree7f1ae5a6349a65716e644d034290c9cc19b2c0f7 /lib
parentc4ea2e678ab347cbdd80b9e1692c36d6a4b55529 (diff)
Quote values in eval commands.
Diffstat (limited to 'lib')
-rw-r--r--lib/package.sh4
1 files changed, 2 insertions, 2 deletions
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}'"
}