diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-03-12 13:03:33 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-03-12 13:03:33 (EDT) |
commit | 6fffa26c4c9d958e66cdbd712cefdf5bbd087f37 (patch) | |
tree | 7b9b5094cbec101dae34ef6cff8a1c6515ff5f93 /lib | |
parent | c326248494b6fe663320a38419a4a369ced2581c (diff) |
_ob_set_*_parameter(): Don't expand escaped value early in eval
Diffstat (limited to 'lib')
-rw-r--r-- | lib/package.sh | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/package.sh b/lib/package.sh index f824e6c..99f7b76 100644 --- a/lib/package.sh +++ b/lib/package.sh @@ -366,10 +366,7 @@ _ob_set_source_parameter() _OB_SOURCE_PARAMETERS="${_OB_SOURCE_PARAMETERS} ${name}" - # Escape the value. - value="$(echo "${value}" | sed "s/'/'\\\\''/g")" - - eval "_OB_SRCFIELD_${name}='${value}'" + eval "_OB_SRCFIELD_${name}=\"\${value}\"" return 0 } @@ -405,10 +402,7 @@ _ob_set_binary_parameter() _OB_BINARY_PARAMETERS="${_OB_BINARY_PARAMETERS} ${name}" fi - # Escape the value. - value="$(echo "${value}" | sed "s/'/'\\\\''/g")" - - eval "_OB_BINFIELD_${package}_${name}='${value}'" + eval "_OB_BINFIELD_${package}_${name}=\"\${value}\"" return 0 } |